cancel
Showing results for 
Search instead for 
Did you mean: 

Error 500 when running php

aved
Newbie
Posts: 3
Registered: ‎31-07-2010

Error 500 when running php

Hi
I have been trying to install a clean version of Wordpress 3.0.1 but have not been successful, as I get an error 500 message when I try to run the file /wp-admin/ install.php.  I thought it was a corruption of the file and despite 2 fresh uploads I get the same error.  So I ran a 'hello world' program and I get the same error, as shown below.
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: helloworld.php
If you think this is a server error, please contact the webmaster.
Error 500

the hello world script is
<html>
<head>
<title>My First PHP Page</title>
</head>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>
AII I want to do is to install and run Wordpress, the 'hello world' was just to see if it is a problem with PHP,  Any help/advice gratefully received.
thanks

4 REPLIES 4
aved
Newbie
Posts: 3
Registered: ‎31-07-2010

Re: Error 500 when running php

hurrah! Smiley  Cign thank you for your post.  It solved my problem - it was all about permissions.
cign's post at
http://community.plus.net/forum/index.php/topic,85127.0.html
aatxe
Newbie
Posts: 2
Registered: ‎05-08-2010

Re: Error 500 when running php

Hi guys,
Didn't think I needed to start a new topic as there was one here
I have a slight problem with my ccgi webspace.
When trying to run any page with a .php extension i am presented with a 500 server error.
i have given the scripts chmod 777 permissions just to test and I'm still presented with the same issue.
I have also tried running the below pages.
info.php
<?PHP
phpinfo();
?>

and hello.php

<HTML>
<BODY>
Hello World
</BODY>
</HTML>

both of which throw up a 500 server error.
I have tested the site on my personal and work based Apache server running PHP5
I have tried going through Plus.net ticket system and they advised me twice to come here.
I don't think it's my code, even running simple HTML in a php file fails.
any suggestions would be much appreciated
Ben_Brown
Grafter
Posts: 2,839
Registered: ‎13-06-2007

Re: Error 500 when running php

The mechanism we use to separate user's permissions (suexec) will not run files which it considers the permissions to be too loose on, so setting it to 777 will cause the script to fail.
Try changing it to 0700, that should fix the issue. Also the 'PHP' tag should be in lower case, although it doesn't seem to make any difference when I've tested it, the lower case version is the correct one.
aatxe
Newbie
Posts: 2
Registered: ‎05-08-2010

Re: Error 500 when running php

Hi there,
Thanks for your reply,
I feel a bit embarrassed now, that seems to have done the trick.
PS using upper or lower case makes no difference.
dick:quote