C
charlz
Guest
I have a helloworld cgi file and keep getting this (error logs say the same "Premature end of script headers: test.cgi "
NOTE: when I run it from the command line <b>it works</b> ./test.cgi
But form browser gives this:
After reading through the forums I have made sure that all these things:
1. files and folders are 755
2. was loaded in ascii format
3. CGI is turned on in plesk
4. code is sound (as above) no missing semi-colons etc..
5 psa-suexec is up to date.
What else could be the problem? I have tried it with and w/out mod perl being active all with the same result.
thanks!
NOTE: when I run it from the command line <b>it works</b> ./test.cgi
PHP:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "test";
But form browser gives this:
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: test.cgi
If you think this is a server error, please contact the webmaster.
Error 500
After reading through the forums I have made sure that all these things:
1. files and folders are 755
2. was loaded in ascii format
3. CGI is turned on in plesk
4. code is sound (as above) no missing semi-colons etc..
5 psa-suexec is up to date.
What else could be the problem? I have tried it with and w/out mod perl being active all with the same result.
thanks!