How to change PHP handler from SuPHP to FastCGI in a cPanel server

Please follow the steps pasted below to change the php handler from back end.

1. Make sure FastCGI is not enabled on the server. This can be done by issuing the following command:

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

2. Then, you need to enable FastCGI on the server via easyapache.

# /scripts/easyapache > Exhaustive list options > enable mod_fcgid (FastCGI support) from the list available.

3. Finally, change the PHP handler using the following command:

# /usr/local/cpanel/bin/rebuild_phpconf X Y Z 0/1

x=5 if you need to enable php5
y=4 or none if youn need/don’t need php4
z= cgi,dso,fcgi,suphp
1/0 = Suexec: enabled/disabled

# /usr/local/cpanel/bin/rebuild_phpconf 5 none fcgi 1

for more details

# /usr/local/cpanel/bin/rebuild_phpconf --help 

That’s it!!!!

  • 0 Khách hàng đánh giá tốt về chủ đề này
Chủ đề này có giúp được bạn ?
Bài viết liên quan

Powered by WHMCompleteSolution

Copyright © 2019 Công ty TNHH KDATA. All Rights Reserved.