My server uses suPHP and so each website has it's own php.ini file. My host recommended adding the following in my .htaccess file:
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/user/public_html
</IfModule>
This basically points to the site's php.ini file. However, I am trying to have a standard .htaccess file across all sites that I don't need to edit- basically part of my "boilerplate" site that I start off with. I tried to change the above to this:
<IfModule mod_suphp.c>
suPHP_ConfigPath %{DOCUMENT_ROOT}/public_html
</IfModule>
But this doesn't work. As you can tell I am probably not understanding how this all works. Can anyone help me with the above code so that I don't need to put the exact path in for each .htaccess file, and get Apache to work out the path to my php.ini file?
I hope that makes sense, it's a little difficult to explain!