I am working with an Apache2/Redhat5.5 configuration. I am trying to configure (and learn) how to run Perl scripts which is new to me.
In my httpd.conf file I made these changes and/or notice these settings:
DirectoryIndex index.html index.html.var index.cgi index.pl ... AddHandler cgi-script .cgi .pl ... ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" ... <Directory "/var/www/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory>
I have placed this script: http://www.seaglass.com/downloads/file_upload.pl into the /var/www/cgi-bin/ directory.
I then point my browser to myIpAddress/cgi-bin/file_upload.pl and get a "internal server error ... The server encountered an internal error or misconfiguration and was unable to..."
I then check the error log to find this:
[Sun Nov 27 19:59:02 2011] [error] [client ***] (2)No such file or directory: exec of '/var/www/cgi-bin/file_upload.pl' failed [Sun Nov 27 19:59:02 2011] [error] [client ***] Premature end of script headers: file_upload.pl [Sun Nov 27 19:59:02 2011] [error] [client ***] File does not exist: /var/www/html/favicon.ico