title: php.ini with suPHP in .htaccess
body: <p>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:</p>
  
  <pre><code>&lt;IfModule mod_suphp.c&gt;
  suPHP_ConfigPath /home/user/public_html
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>&lt;IfModule mod_suphp.c&gt;
  suPHP_ConfigPath %{DOCUMENT_ROOT}/public_html
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>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?</p>
  
  <p>I hope that makes sense, it's a little difficult to explain!</p>