moron at perl/cgi

Craig White craigwhite at azapple.com
Wed Jan 11 23:03:24 MST 2006


Should be simple but I'm not getting it.

Downloaded a simple perl-cgi script called ForMail.pl

getting fast and loose with permissions...

# ls -l /var/www/cgi-bin/FormMail.cgi
-rwxr-xr-x  1 apache root 29239 Jan 11
22:54 /var/www/cgi-bin/FormMail.cgi

(user apache has execute privileges)

but all attempts to call it get 404 error...

/var/log/httpd/access_log
192.168.2.20 - - [11/Jan/2006:22:59:58 -0700] "POST /cgi-bin/ForMail.cgi
HTTP/1.1" 404 299 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.
12) Gecko/20050915 Firefox/1.0.7"

/var/log/httpd/error_log
[Wed Jan 11 22:59:58 2006] [error] [client 192.168.2.20] script not
found or unable to stat: /var/www/cgi-bin/ForMail.cgi

Nothing in /var/log/messages or dmesg to indicate a permissions or
selinux issue (CentOS 4)

I know I must be missing something obvious - moron at perl here.

Suggestions?

Craig



More information about the PLUG-discuss mailing list