How to change php handler from command line




To display current php handler installed and all the available php handlers in the server:

  /usr/local/cpanel/bin/rebuild_phpconf --current

To display available php handler and all the available php handlers in the server

  /usr/local/cpanel/bin/rebuild_phpconf --available

To change default PHP handler to DSO :

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

To change default PHP handler to suphp:

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

Command to change the default PHP handler to cgi:

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


--

No comments:

Post a Comment