Custom php settings when you enable Fast-CGI


When you enable fast-cgi, there should be a custom php.ini in the cgi-bin folder of the account.

* Just Move your php.ini file into the cgi-bin folder of the account

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

#!/bin/sh
export PHP_FCGI_CHILDREN=1
export PHP_FCGI_MAX_REQUESTS=10
exec /usr/local/cpanel/cgi-sys/php5

* chmod php.fcgi to 755.

* Upload .htaccess under public_html and put the following:

AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi


Then save the file and this custom php configuration will now work.

Please note that .htaccess will still work the same way.
  • 173 Users Found This Useful
Was this answer helpful?

Related Articles

Disk quota exceeded: mailbox is full

Issue:Email fails with the following error message.===Subject: Mail delivery failed: returning...

Can I edit DNS records from my CPanel?

You can edit DNS records from your CPanel by following the instructions in the two CPanel...

CentOS - Hostname Change

Hostname Change There are 4 steps in a hostname change, luckily all the steps are easy....

What Is A Reverse PTR Record?

PTR record or more appropriately a reverse PTR record is a process of resolving an IP address to...

Why Do You Need A Reverse PTR Record?

The most common use for looking up a PTR record is done by spam filters. Concept behind this idea...