Enable custom php.ini configuration for PHP/FastCGI

General help with the Plesk control panel

Enable custom php.ini configuration for PHP/FastCGI

Postby Alan » Sun Sep 26, 2010 10:49 am

Ability for PHP when working in FastCGI mode to use custom php.ini config on per-domain basis (e.g. VHOST_ROOT/conf/php.ini) since options passed in vhost.conf (such as 'php_value include_path "."') only work with mod_php but not with mod_fcgid.


1. Replace cgi_wrapper to path $CGI_PHP_BIN(see psa.conf) with attached wrapper
2. cp {original php.ini} $HTTPD_VHOSTS_D/<domain>/conf/
3. chmod 0755 $HTTPD_VHOSTS_D/<domain>/conf
4. get the fun.

Example for centos5 Plesk 9.5.2. domain name - "test.domain.com":

1. cp cgi_wrapper /var/www/cgi-bin/cgi_wrapper
2. cp /etc/php.ini /var/www/vhosts/test.domain.com/conf
3. chmod 0755 /var/www/vhosts/test.domain.com/conf

Attachment at original post:

http://forum.parallels.com/showpost.php ... stcount=67
Posts: 220
Joined: Sat Dec 11, 2004 4:35 pm
Location: Vancouver, BC

Return to General Help

Who is online

Users browsing this forum: No registered users and 0 guests