httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] User cgi-bin doesn't work with 1.3.26, I'm stumped.
Date Tue, 17 Sep 2002 08:16:44 GMT
Your system CGI works via the ScriptAlias directive. You have no such directive for the user
directories. However, you do have an "AddHandler cgi-script .cgi" which will cover those (although
it is inside an <IfModule mod_mime.c> container - I presume you have this module loaded?).
This is not wrong, but there is redundancy - e.g. if you ever wanted to disable systen CGIs
and removed the ScriptAlias, CGIs would still work via the AddHandler...

In any case, the "Internal Server Error" means that the program did execute so CGI is OK.
The problem is in the scripts - does the apache user (www-data) have execute permissions in
/home/ken/public_html/cgi-bin/bash.cgi? Does the program work on the command line?

>-----Original Message-----
>From: Ken Causey []
>Sent: Montag, 16. September 2002 18:01
>Subject: [users@httpd] User cgi-bin doesn't work with 1.3.26, I'm
>I'm using 1.3.26 from Debian testing feed:
>And I'm having the strangest problem, cgi's that work just 
>fine in system 
>cgi-bin directory /usr/lib/cgi-bin/ will not work in a user cgi-bin 
>directory such as /home/ken/public_html/cgi-bin/
>  works
>  doesn't work
>These are the exact same script:
>temp:~# cat /home/ken/public_html/cgi-bin/bash.cgi 
>echo "Content-Type: text/plain"
>echo "Bash says 'Hello'"
>temp:~# cat /usr/lib/cgi-bin/bash.cgi | md5sum | sed 
>'s/\-/\/home\/ken\/public_html\/cgi-bin\/bash.cgi/' | md5sum -cv
>/home/ken/public_html/cgi-bin/bash.cgi OK
>Copy of server config can be found at
>All I get in error.log (even with LogLevel debug) is
>[Mon Sep 16 10:56:46 2002] [error] [client] 
>Premature end 
>of script headers: /home/ken/public_html/cgi-bin/bash.cgi
>ScriptLog output example:
>Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66
>Accept-Encoding: gzip, deflate, compress;q=0.9
>Connection: keep-alive
>Cookie: dtpref_rows="30"; dtpref_cols="40"
>Keep-Alive: 300
>User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) 
>I can't figure this one out.  What else would you like to know?
>Ken Causey
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message