Change PHP Handler via command line

How to change Apache PHP Handler via command line?

We can change php handler through WHM > Service Configuration > Configure PHP and suEXEC but in order to change it via command line, use the following commands to change PHP handler via command line.

If you wish you may also check and configure Apache PHP Knowledgebase.

To check currently used Apache PHP Handler

/usr/local/cpanel/bin/rebuild_phpconf –current

To check Available Apache PHP Handler into the server

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

To set default Apache PHP Handler to dso

/usr/local/cpanel/bin/rebuild_phpconf 4 dso none 1

To set default Apache PHP Handler to SuPHP

/usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1

To set default Apache PHP Handler to cgi

/usr/local/cpanel/bin/rebuild_phpconf 5 none cgi 1

Thats all!!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to disable user Custom PHP.INI files

Disable user unwanted custom php.ini file in your cpanel server. suPHP is a module that enhances...

How To Install eAccelerator on cpanel

eAccelerator is a free, open-source piece of software used to speed up PHP loading on websites....

Test MySQL database connection with php script

You can use the following php script which is used to test mysql database connection on your...

Important php security settings

PHP is a server side scripting language. You can embed PHP code in your web pages along with...

Enable Custom php.ini for Fast CGI

With fast-cgi, custom php.ini needs to be in the cgi-bin folder. 1) Move php.ini to cgi-bin...

Powered by WHMCompleteSolution