• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

500 internal server error

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
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!
 
may sound like a stupid question ( but you did not say so in your post... )

is it in your cgi-bin folder ?
 
Originally posted by jspilon
may sound like a stupid question ( but you did not say so in your post... )

is it in your cgi-bin folder ?

yes it is in there and cgi is enabled.
 
Back
Top