View Full Version : Everything is uploaded still 500 error???
11-13-01, 08:56 PM
What am I doing wrong? I have a messageboard that I use on my website. Since I switched to Pow web hosting I want to bring it over to there server! So I unzipped the software just to be sure that nothing would be wrong with the files that I uploaded (like wrong kind of editor used on them).
I edited the path (with notepad) in the first line, got rid of the local in the path to the cgi-bin directory.
Uploaded all of the files in the appropriate directory using ascii file transfer on most of the files just like I was suppose too.
Chmod all of the files in the cgi-bin to per 755!
Ran setup.pl and I get the 500 error! All this .pl file does is setup the username and password.
Error log shows
Premature end of script headers: /www/t/thejump/cgi-bin/messageboard/setup.pl
Can anyone help me with this one???
FYI, 99% of all "premature end of script headers" errors are caused by improper permission set. Make sure that not only your scripts, but the directories that contain them are set CHMOD 755.
11-13-01, 11:39 PM
I rechecked and mod is 755 for all files and all directories, including the cgi-bin directory. When I change the cgi-bin mod to 755 it is automatically changing every subdirectory and every file to 755 also! Is that normal?
Also I tried 777 just now and still 500 error. So I changed it back to 755 and tried again. Still 500 error!
chmod is correct so it must be something else. I only changed the first line by removing /local from the path.
This is the path I use
Is that the correct line to use or is something wrong with it.
Also I read on the forum that you could use notepad.exe to edit the script. But I though you couldn't use that because it added line returns to the code. Does anyone know for sure!
I have tried unzipping the files and editing them with write.exe (wordpad) but got 500 error.
I have tried re unzipping the files after deleting the ones on my harddrive and then editing them with notepad.exe and still get the 500 error.
Help! Is there something I need to do to enable the use of cgi on my site! I have had pow web for a while but have not used their cgi capability, I have simply been using my old server for the message board. I have had to reinstall windows on my computer so any and no longer have any original emails from pow web hosting with any directions that I might need that I am unaware of. Can you just sign up and use the cgi-bin immediately? Grasping for straws here.
11-13-01, 11:45 PM
Here is an addition to everything else.
When I leave the computer and come back later the chmod has been reset to no execute allowed. I change it to 755 AGAIN then run setup.pl get the 500 error message. Hit refresh just to make sure the page isn't cached, get the 500 error message then recheck the chmod and it shows 755. But if I log in later it is no longer 755! What is that all about?
I am using WS_FTP if that matters.
11-14-01, 04:49 AM
the servers are unix! You're using an NT script '.pl' try renaming it to .cgi
11-14-01, 05:16 AM
I am running this same messageboard on my old server. The old server is unix. The documentation also says that it will run on a unix or a nt server.
I believe it has something to do with chmod. After I give the board a shot and fail something strange happens. When I return to give it another shot the chmod setting have changed from 755! Why is that @^%& happening?
11-14-01, 05:20 AM
.pl will run on this unix server and any other that is configured to accept that extension. PowWeb accepts .pl as a viable extension.
My guess and MY experience is that you have missed a chmod somewhere. I usually get a 775 stuck in somewhere and miss it on review. Check your chmod's VERY carefully again.
11-14-01, 06:26 AM
Ok I ran a little test.
Chmod cgi-bin to 755.
chmod has not changed still 755.
Now I run setup.pl and get the 500 message.
Now I run ws_ftp and the permissions have changed. No 755 anymore. Why is that happening????
I do remember having an experience with one FTP program that it did not update the CHMOD after giving a command. So, maybe it's worth trying another FTP client? You can download for example a free trial version of cuteftp pro and see if that solves your problem
11-16-01, 04:38 AM
Thanks for the help. I changed ftp programs and that fixed everything. The darn thing was telling me it changed the setting and show that it had changed them but it really wasn't changing them.
11-16-01, 04:22 PM
have been Fighting a Links script for months.
I finally downloaded FTPWORKS
It is able to set the CHMOD correctly.
All Is well now
(WHY would one of the largest FTP progams have such a BUG)
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.