[lug] Cgi Scripts Don't Work

D. Stimits stimits at idcomm.com
Fri Mar 15 14:44:09 MST 2002

SoloCDM wrote:
> With Apache 1.3.22 on Linux with kernel 2.2.19 is the cgi
> scripts suppose to work at installation time in the cgi-bin
> (/var/www/cgi-bin)?  I went through the settings for ExecCGI,
> AddHandler, and Directory.  Everything is activated and pointing
> to the directory for the cgi-bin, except for "Options -Indexes
> FollowSymLinks MultiViews."  What is missing?

What distribution and version of distribution? E.G., RH 7.2? And was
this installed at the time of the machine, or after? If after, was it a
RH rpm, or from someone else (assuming RH)?

> I noticed test-cgi in the cgi-bin.  If it can be used for testing
> Apache's cgi-bin, how would I make the test?

Probably http://localhost/cgi-bin/test-cgi.cgi
(assumes file name test-cgi.cgi)

Else try something like (create as mytest.cgi, with exec permissions,
run manually to start):

echo -e "Content-type: text/html\n"
echo "<HTML>"
echo "<HEAD>"
echo "<TITLE>My Test</TITLE>"
echo "</HEAD>"
echo "<BODY>"
echo "<P>It works.</P>"
echo "</BODY>"
echo "</HTML>"

Hopefully that works. If you have symbolic links, this can cause it to
fail. You might view with tail -f the various log files in
/var/log/httpd/ while trying.

D. Stimits, stimits at idcomm.com

> --
> Note: When you reply to this message, please include the mailing
>       list/newsgroup address and my email address in To:.
> *********************************************************************
> Signed,
> SoloCDM
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug

More information about the LUG mailing list