Check If Php Suexec Installed

. This document only applies to systems that run EasyApache3. This script offers nearly the same functionality as WHM's interface ( WHM Home Service Configuration Configure PHP and SuExec). Users who are more comfortable with a graphical interface may prefer that method. In cPanel & WHM version 72 and later, you can use cPanel's interface ( cPanel Home Advanced Terminal) or WHM's interface ( WHM Home Advanced Terminal) to access the command line from within the interface.

  1. Check If Php Suexec Installed Free

The system logs suEXEC errors to the /usr/local/apache/logs/suexeclog file.View a list of optionsTo see a list of all of the options and arguments for this script, run the following command. Usage: /usr/local/cpanel/bin/rebuildphpconf -dryrun -no-restart -no-htaccess-current -available -errors -dryrun: Only display the changes that would be made-no-restart: Don't restart Apache after updating the php.conf link-no-htaccess: Don't update user configurable PHP mime mapping.-current: Show current settings-available: Show available handlers and PHP SAPIs-errors: Print additional errors on stderr instead of only writing to log: Version of PHP to set as default handler for.php files: Type of Apache module to use in serving PHP requests: enabled, disabled, 1 or 0. ParameterDescription-dryrunUse this argument if you wish to compile and view the PHP configuration file before you use it on your server. This is useful when you check for errors and security flaws before Apache uses this PHP configuration. You will need to run the script again without the -dryrun argument in order to effect your PHP configuration changes.-no-restartUse this argument if you do not wish to restart Apache after you update the PHP configuration file.-no-htaccessUse this argument if you do not wish to update users'.htaccess files.-currentThis argument displays the current php.conf settings and does not change the configuration. The system displays the following information:.

Check If Php Suexec Installed Free

The version of PHP that the system currently uses by default. The SAPI (server API, or interface) that the system currently uses to run PHP 4. The SAPI that the system currently uses to run PHP 5. Whether suEXEC is enabled. Displays whether RUID2 is installed or available.-availableThis argument displays available php.conf settings but does not change the configuration.

The system displays the following information:. The PHP request handlers that are available to Apache. The SAPI (server API) that the system compiles into the PHP 4 binary. The SAPI that the system compiles into the PHP 5 binary. Whether suEXEC is available. Displays whether RUID2 is installed or available.-errorsUse this argument if you wish for the system to display additional php.conf error messages, as well as write the errors to the system's /log files.

Installed

Steps to list the php handler from command-line:Step 1: Login to the server as root user.Step 2: Execute the command; /usr/local/cpanel/bin/rebuildphpconf -currentExample: # /usr/local/cpanel/bin/rebuildphpconf -currentAvailable handlers: suphp dso cgi noneDEFAULT PHP: 5PHP4 SAPI: nonePHP5 SAPI: suphpSUEXEC: enabledRUID2: not installedThe above command also lists the available php handlers. Also, you can use the below command for available php handlers. П™‚ /usr/local/cpanel/bin/rebuildphpconf -availableExample: # /usr/local/cpanel/bin/rebuildphpconf -availableAvailable handlers: suphp dso cgi nonePHP4 SAPI: not installedPHP5 SAPI: cgi-fcgiSUEXEC: availableRUID2: not availableThat’s it.!