How to change php handler from backend on cPanel server

To list current handler.

/usr/local/cpanel/bin/rebuild_phpconf –current
The above command will list the current php handler and all other available handlers in the server.

To list all available handlers on server.

/usr/local/cpanel/bin/rebuild_phpconf –available
To change the current php handler to “dso”
Before executing this command please make sure that the php is compiled with DSO.

/usr/local/cpanel/bin/rebuild_phpconf 4 dso none 1
To change the current php handler to “suphp”

/usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1

To change the current php handler to CGI

/usr/local/cpanel/bin/rebuild_phpconf 5 none cgi 1
It will change the default PHP handler to cgi

To change the current php handler to FastCGI

/usr/local/cpanel/bin/rebuild_phpconf 5 none fcgi 1

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