To Customize the php directives for perituclar domain using the php.ini file On the S
To Customize the php directives for perituclar domain using the php.ini file On the Server comiled with PHP FastCGI
(Plesk Panel 9.2.2 on CentOS 5.3 with PHP 5.2.9)
1. Move /usr/bin/php-cgi to /usr/bin/php-cgi.app
2. Create a new /usr/bin/php-cgi file and put the following lines in it:
Code:
#!/bin/sh # # Custom PHP FCGID wrapper for Plesk domains # PHPRC="/etc/php-ini.d/php-${UID}.ini" [ -f ${PHPRC} ] || PHPRC="/etc/php.ini" export PHPRC exec /usr/bin/php-cgi.app
3. Create the directory /etc/php-ini.d/
4. Check domain/ftpuser UID for which you want to have a custom php.ini.
Example /etc/passwd:
icann:x:10001:2523::/home/httpd/vhosts/icann.org:/bin/false
4. Copy the original /etc/php.ini to /etc/php-ini.d/php-10001.ini
5. Make any changes you want to php-10001.ini
6. Run service httpd reload
__________________
Phil
Simple, Capable, Ready For the Future
|