PDA

View Full Version : 500 Internal Server Error - PHP scripts


creek
1-13-02, 06:48 AM
I see a lot of posts about this, but I haven't been able to find an answer here. Can any one help me as I am having the same problem.

I put the line #!/usr/local/bin/php at the top of my files to no avail.

I cannot run
http://www.creeksidetech.com/gallery/index.php3 - get 500 Internal Server Error

nor can I run

http://www.creeksidetech.com/test.phtml - it just wants to download the file instead of viewing it.

PLEASE HELP! These scripts ran on the server I was on before I moved to powweb.

Thanks in advance.

creek
1-13-02, 07:31 AM
[Fri Jan 11 17:22:43 2002] [error] [client 207.87.73.31] Premature end of script headers: /www/c/creekside/htdocs/gallery/index.php3


This is what my error log says... what does this mean?

SimCoWeb
1-13-02, 10:02 AM
Did you chmod the scripts to 755?

creek
1-13-02, 07:44 PM
Yes chmod 755 and uploaded in ASCII as with any other script. Any other ideas?

omegaman66
1-23-02, 02:08 AM
Did you use ws_ftp if so it is screwing up the chmod even though it shows what you want it to show.

FunkyBacon
1-23-02, 05:28 AM
Well it seems to be working now.

SimCoWeb
1-23-02, 01:21 PM
make sure you also chmod the 'directory' that the script(s) are in to 755 as well.