When I run it through ssh, it outputs:
Content-type: text/html
Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-US"><head><title>Hello World</title>...
This is what the server logs say:
[Wed Aug 3 16:11:40 2005] [error] [client 12.208.101.137] (12)Cannot allocate memory: getpwuid: invalid userid 1246
[Wed Aug 3 16:11:40 2005] [error] (12)Cannot allocate memory: exec of /hsphere/local/home/tim/kjajksasdn.com/cgi-bin/test.cgi failed
[Wed Aug 3...
Here's the contents of the test.cgi file that I was using:
#!/usr/bin/perl
print "Content-type:text/html\n\n";
print "Hello world! ";
print " This CGI / PERL script is working properly!";
I tried adding the space, as perl21 suggested, but that did not seem to help.
I kept getting 500 Internal Server Errors when trying to set up one of my Perl scripts, so I decided to test a simple "Hello World!" script. It produced the same error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.