Ok, maybe this is obvious to those of you who are systems/web administrators for I was not suppose to be one. Never the less I have learned much and have done many things with my apache server, but I cannot seem to get it to run a simple hello world script.
I have checked the permissions of everything.
drwxr-xr-x 22 root wheel 512 May 16 2003 var
drwxr-xr-x 10 root daemon 512 May 13 07:58 /var/www
drwxr-xr-x 2 root daemon 512 Aug 24 16:26 /var/www/cgi-bin
-rwxr-xr-x 1 root daemon 76 Aug 24 16:26 /var/www/cgi-bin/hello.cgi
I made sure that the AddHandler line exists in the conf file:
AddHandler cgi-script .cgi
It used to have .pl after the .cgi, but I though I'd it without after reading someones comment.
I made sure I have the module loaded:
-bash-2.05b# httpd -l
suexec: disabled; invalid wrapper /usr/sbin/suexec
That also implies that I'm not using suexec, which I also made sure I wasn't.
Here is the <VirtualHost> declaration:
# Port 80
Allow from all
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
It has gone through a growing stage where I've tried adding many things and deleting them one by one to see if I can change the results. Alas, to no avail. (I have the actual IP on my server and the actual domain name).
Here is my error log:
[Thu Aug 26 20:47:50 2004] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: /cgi-bin/hello.cgi
Here is the access log:
xxx.xxx.xxx.xxx - - [26/Aug/2004:20:47:50 -0600] "GET /cgi-bin/hello.cgi HTTP/1.1" 500 538
So, is there any thing else I should check? I'm really tired of getting that evil "Internal Server Error".