I have tried 3 different cgi/pl scripts and all gave the same result. Internal Error 500. Check in my server logs and this is what I found in my error
Access log:
Code:
127.0.0.1 - - [11/Sep/2009:11:38:04 -0400] "GET /cgi-bin/scripts.cgi HTTP/1.1" 500 535
Error log:
Code:
[Fri Sep 11 11:38:04 2009] [error] [client 127.0.0.1] Premature end of script headers: dirpass.cgi
httpd.pid:
The odd thing is when I tried this random script:
Code:
#!/usr/bin/perl
print "Content-type: text/plain\n\nHet werkt!\n";
It displayed the text: Het werkt!
I know the error 500 could mean anything from a permission setting to a bad script, but...3 scripts in a row? If you think I should try another script, I am looking for one which will password protect folders on a server. Need to have admin area to store usernames / passwords. Here's three I already tried: Directorypass, Locked-Area, DeadBolt.
All gave me the dreaded internal server 500 error message. Even though one script worked, could that mean a bad installation of apache2? The install seemed to go fine. And I couldn't see how one script could work, while others don't work...Especially 3 in a row. Please advise.
Thanks!
-Brian
__________________
Sig Less - Have some site you want me to put here? Will put here for a couple of paypal bucks.
|