Hi,
We all knows how to change the php handlers from WHM interface. The following path will get you to configure PHP
Home >> Service Configuration >> Configure PHP and SuExec
In case if the cPanel interface is not working like if the license got expired etc, We needed to change it from back end. Please follow the guidelines to make it.
1. Command to display the current php handler installed and all the avaliable php handlers in the server
/usr/local/cpanel/bin/rebuild_phpconf --current
2. Command to display the available php handler installed and all the avaliable php handlers in the server
/usr/local/cpanel/bin/rebuild_phpconf --available
We can use the following as a referral with variables
/usr/local/cpanel/bin/rebuild_phpconf x y none z
Here x,y,z are variables. Their available values are listed below
For x, The values are 4,5
4 stands for php 4.x
5 stands for php 5.x
For y, The possible values are suphp, dso, cgi, none. This can be confirmed from the following command
/usr/local/cpanel/bin/rebuild_phpconf --available | grep handler
For z, The values must be either 1 or 0
1 stands for enabling SUEXEC
0 stands for disabling SUEXEC
Note regarding php handlers
------------------------------
None : Apache will not process php pages.
DSO : php page will be processed with the help of libphp4.so or libphp5.so. Here mod_php must have enabled in apache conf file.
SuPHP : php page will be processed under virtual host user and it's needed mod_suphp
FCGI : php page will be processed with the help of mod_fcgi and This is a very fast way of serving PHP requests. If Suexec is enabled, each user will create their own PHP FastCGI server automatically and PHP scripts will be executed by the user who owns the VirtualHost serving the request else page will executed under "nobody".
CGI : php page will be processed with the help of mod_cgi or mod_cgid. If Suexec is enabled, PHP scripts will be executed by the user who owns the VirtualHost serving the request else it'll executed under "nobody".
Thatz all I know