How to change php handler from backend on cpanel server?



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".
By : webhostingtalk.com



Related Posts:



Responses

0 Respones to "How to change php handler from backend on cpanel server?"

Post a Comment

»Thank you for reading this article
If you have questions or comments, please leave a comment
»You can click on the Subscribe by email to subscribe comments of this post
»You can register directly link pictures, mp3, video on the comment form.
»You may use some HTML tags such
»Please post comments polite and typing accented Vietnamese if possible
»Thank the good faith comment

 

Categories

Recent Comments

Total Pageviews

Return to top of page ©Web Server Tips Tricks 2010 | Develop by Mr.PhanQuan .Powered by Blogger . All rights reserved.