To list current handler.
The above command will list the current php handler and all other available handlers in the server.
To list all available handlers on server.
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