Command-line option to list the current PHP handler on the server – cPanel

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/rebuild_phpconf –current
Example:

root@test [~]# /usr/local/cpanel/bin/rebuild_phpconf –current
Available handlers: suphp dso cgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: suphp
SUEXEC: enabled
RUID2: not installed
The above command also lists the available php handlers. Also, you can use the below command for available php handlers.

/usr/local/cpanel/bin/rebuild_phpconf –available
Example:

root@test [~]# /usr/local/cpanel/bin/rebuild_phpconf –available
Available handlers: suphp dso cgi none
PHP4 SAPI: not installed
PHP5 SAPI: cgi-fcgi
SUEXEC: available
RUID2: not available

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s