Article ID: 9059, created on Sep 24, 2010, last review on Aug 12, 2014

  • Applies to:
  • Plesk 9.x for Linux/Unix


It is possible to use custom php.ini for domains if PHP is used in FastCGI mode.

But first, you need to apply a hotfix. The hotfix is compatible with Parallels Plesk Panel versions 9.x.

Take the following steps to apply the hotfix.

1. Download hotfix from the attachment.
# wget

2. Locate the file, cgi_wrapper.
# cat /etc/psa/psa.conf |grep CGI_PHP
CGI_PHP_BIN /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

3. Create a backup of this file.
# cp /var/www/cgi-bin/cgi_wrapper/cgi_wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper_orig

4. Replace cgi_wrapper with the downloaded one.
# cp cgi_wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

5. Copy and paste php.ini to the configuration directory of the domain.
# cp php.ini /var/www/vhosts/domain.tld/conf/

6. Change permissions on the configuration directory of the domain.
# chmod 0755 /var/www/vhosts/domain.tld/conf

7. Restart Apache.
# /etc/init.d/httpd restart

After these changes, the configuration of php.ini in the configuration directory of the domain will be used.


6ef0db7f1685482449634a455d77d3f4 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF