PHP: Customer PHP.ini file

Published by

Posted on November 25, 2008

I found that you can run your own copy of the php.ini file if the host is running php in cgi mode.  you will need to create a .htaccess file with the following 

SetEnv PHPRC /home/user1   *path to your php.ini file 

for SU_PHP suPHP_ConfigPath /home/user/php.ini

or

using a wrapper shell script

export PHPRC=/home/user1  *path to your php.ini file 

The htaccess file should go into the root folder of your hosting content. This works with cpanel and plesk confirmed.

Reference

Reference-1

**needs updating *****