How to change Apache PHP Handler On cPanel Server

Stop worrying about your server.

cPanel/Plesk Server Management for just $59/mo with Unlimited tickets, Unlimited admin hours, Security audits, 24×7 monitoring and lot more 

cPanel Server Management  $59/mo Click here

Plesk Server Management $59/mo Click here

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:

[[email protected] ~]# /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:

 

[roo[email protected] ~]# /usr/local/cpanel/bin/rebuild_phpconf --available

3.

Command to change the default PHP handler to dso:

[[email protected] ~]# /usr/local/cpanel/bin/rebuild_phpconf 4 dso none 1

4.

Command to change the default PHP handler to suphp:

[[email protected] ~]# /usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1

5.

Command to change the default PHP handler to cgi:

[email protected] ~]# /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 [email protected]

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

Server Management at just $59

Leave a Reply

Your email address will not be published. Required fields are marked *