apache Error 500 (Premature end of script headers)
Posted: Fri Jun 24, 2005 9:02 am
Hi
when i'm accessing my site via http://nila.lunarpages.com/~myname/ i'm getting:
i verified all these things: files are saved with unix newline style,
upload mode also was correct(filezilla) and finally i set up 755 owner permissions and correct content-type.
now, regarding the content of index.php, i tried something like:
and
or simply:
no matter what i'm getting the same 500 error and the same error message in log.
What else can i do?
when i'm accessing my site via http://nila.lunarpages.com/~myname/ i'm getting:
also in error log i see:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
...
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.33 Server at nila.lunarpages.com Port 80
i searched web about this error and found that this error can arise from limited file permissions, incorrect ftp upload mode , newlines conventions or not using content type header.Premature end of script headers: /home/myname/public_html/index.php
i verified all these things: files are saved with unix newline style,
upload mode also was correct(filezilla) and finally i set up 755 owner permissions and correct content-type.
now, regarding the content of index.php, i tried something like:
Code: Select all
<?php
header("Content-type: text/html");
phpinfo();
?>Code: Select all
<?php
echo('ok');
?>Code: Select all
some text hereWhat else can i do?