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 folder

2) In cgi-bin folder, create php.fcgi and put the following in this file:

exec /usr/local/cpanel/cgi-sys/php5

3) chmod php.fcgi to 755.

4) Upload .htaccess under public_html, put the following:

AddHandler php5-fastcgi .php
 Action php5-fastcgi /cgi-bin/php.fcgi
  • 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...

Powered by WHMCompleteSolution