title: 500 Internal Server Error only in public_html?
body: <p>I'm encountering 500 Internal Server Errors on my shared hosting account, but only when I try and access PHP files in my main root public_html directory.  Any PHP files in subdirectories are absolutely fine.</p>
  
  <p>Permissions all appear to be set correctly across all files (all set to 755).  Rewrite engine is on in .htaccess with a single re-write rule which has nothing wrong with it, but to be sure I've deleted all the rules there and the problem persists.</p>
  
  <p>The error logs show this every time I try and access a file:</p>
  
  <pre><code>[07-Sep-2014 16:15:36 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic
   library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - 
  /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so: 
  cannot open shared object file: No such file or directory in Unknown on line 0
  </code></pre>
  
  <p>The warning repeats for every <code>.so</code> file that needs to be loaded.  All HTML files and image files work fine in the root directly, it's only PHP files that cause the problem.</p>
  
  <p>As it's shared hosting I can't restart Apache, but other than that I have full access to edit <code>php.ini</code>.</p>
  
  <p>How can I fix this please?</p>
  
  <p><strong>Additional Information:</strong></p>
  
  <p>I did not notice this before, but I also get this error:</p>
  
  <p><code>[07-Sep-2014 16:15:36 Europe/London] PHP Fatal error:  Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0</code></p>