Knowledgebase: PHP and Apache
Fast CGI and Custom php.ini files
Posted by Cirtex Cecilia on 22 July 2010 07:42 AM
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:

#!/bin/sh
export PHP_FCGI_CHILDREN=1
export PHP_FCGI_MAX_REQUESTS=10
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


and you are done.

.htaccess still works the same way.
(653 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako fusion