Re: PHP MySQL 500 Internal Error
| From: | Paul Scott | Date: | Fri, 19 Jun 2009 11:11:19 +0000 |
| Subject: | Re: PHP MySQL 500 Internal Error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294316@lists.php.net to get a copy of this message | ||
On Thu, 2009-06-18 at 22:10 -0400, Shawn Simmons wrote:
> Wrote a small script to connect to the MySql database. Tried to run the
> script (http://localhost/dbscript.php) and I get a 500 Internal Server
> error. I have been up and down the web for two days looking for a solution
> and I am completely frustrated. I HAVE to be missing something. PLEASE
> PLEASE PLEASE help. Thanks.
>
Check permissions and ownership on the file. That often happens when the
permissions are set to 0777 as opposed to 755 (in *nix speak), so check
that the webserver user has read and execute access on the file and that
it ownds the directory etc
-- Paul
http://www.paulscott.za.net
http://twitter.com/paulscott56
http://avoir.uwc.ac.za
--