You can specify which php.ini file is used within a certain directory if you have multiple php.ini files.
To do this, edit your .htaccess file located in the directory you wish to use and add the following .htaccess code:
The code below uses “/path/to/folder/php.ini” as the location of the php.ini file. Be sure to replace this with the correct path to your preferred php.ini file.
# cat .htaccess <IfModule mod_suphp.c> suPHP_ConfigPath /path/to/folder <Files php.ini> order allow,deny deny from all </Files> </IfModule>
Save your .htaccess file and enjoy!
If you do not use this option, PHP will use the server’s default php.ini path.