Adding custom php.ini for mod fcgid

1)Create a script php.fcgi in /home/username/public_html/cgi-bin with permission 755 and ownership username. Add the entries

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

2)Create a .htaccess in the directory you need custom php configuration working with the following code in it.

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

3) Copy the php.ini file that is currently used to /home/username/public_html/cgi-bin and change according to your needs.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: