Guys,
I have referred the following commands to switch the php handler on the cpanel serevrs:
1. Command to display the current php handler installed and all the avaliable php handlers in the server:-
------
[root@me ~]# /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@me ~]# /usr/local/cpanel/bin/rebuild_phpconf --available
------
3. Command to change the default PHP handler to dso:-
------
[root@me ~]# /usr/local/cpanel/bin/rebuild_phpconf 4 dso none 1
------
4. Command to change the default PHP handler to suphp:-
------
[root@me ~]# /usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1
------
5. Command to change the default PHP handler to cgi:-
------
root@me ~]# /usr/local/cpanel/bin/rebuild_phpconf 5 none cgi 1
------
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".
try :)
No comments:
Post a Comment