Quantcast
Channel: Linux Server | cPanel | WebHosting
Viewing all articles
Browse latest Browse all 16

Change the PHP Handler on a cPanel Server in WHM or via Command Line

$
0
0

PHP handler determines how PHP is loaded on the server. PHP handler is what actually loads the PHP libraries so that they can be used for interpretation. Different types of PHP handlers are DSO, suPHP, CGI, & FastCGI.

To change the PHP handler in WHM navigate to:

WHM >> Home >> Service Configuration » Configure PHP and suEXEC

To list the available PHP handlers via the command line run:

/usr/local/cpanel/bin/rebuild_phpconf –available

To list what is currently enabled run:

/usr/local/cpanel/bin/rebuild_phpconf --current
To change the current PHP handler to suPHP run:
#/usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1
To change the current PHP handler to DSO run:
/usr/local/cpanel/bin/rebuild_phpconf 5 dso none 1
To change the current PHP handler to CGI run:
/usr/local/cpanel/bin/rebuild_phpconf 5 none cgi 1
To change the current PHP handler to FastCGI run:
/usr/local/cpanel/bin/rebuild_phpconf 5 none fcgi 1

Viewing all articles
Browse latest Browse all 16

Trending Articles