How to change Apache PHP Handler On cPanel Server:

Configure PHP and suEXEC  is the tool in WHM which allows you to configure the Apache PHP Handler, the default PHP version and suEXEC support.

You can simply use the Configure PHP and suEXEC tool to change the Apache PHP Handler. For changing the same using SSH, please use the following commands from the shell as root user.

1.

Command to display the current php handler installed and all the avaliable php handlers in the server:

[root@iserver ~]# /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:

 

[root@iserver ~]# /usr/local/cpanel/bin/rebuild_phpconf --available

3.

Command to change the default PHP handler to dso:

[root@iserver ~]# /usr/local/cpanel/bin/rebuild_phpconf 4 dso none 1

4.

Command to change the default PHP handler to suphp:

[root@iserver ~]# /usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1

5.

Command to change the default PHP handler to cgi:

root@iserver ~]# /usr/local/cpanel/bin/rebuild_phpconf 5 none cgi 1

 

Please Note :

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”.

If you need our help to fix any issues with your server. Please feel free to contact us, simply email to support@iserversupport.com

Monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more for just $59 

[sep][/sep][button size=”large” color=”green” title=”Server Management from iServersupport” link=”http://iserversupport.com/cpanel-server-management/”]Server Management at just $59[/button]