title: EC2 Ubuntu mysql_connect function causing 500 Internal Server Error
body: <p>I am trying the following script:</p>
  
  <pre><code>&lt;?php
   mysql_connect("inspectlettest.ce0ohcvwmist.us-east-1.rds.amazonaws.com", "username", "password") or die(mysql_error());
   echo "Connected to MySQL&lt;br /&gt;";
  ?&gt;
  </code></pre>
  
  <p>The web server is strangely returning a 500 Internal Server Error.</p>
  
  <p>I can connect to the mysql server via terminal from the instance just fine.</p>
  
  <p>Any ideas?</p>