My scripts in cgi-bin directory not working, how do I troubleshoot this problem?

Posted on in Categories last updated March 31, 2006

You need to add ScriptAlias directive to your httpd.conf file. By default Apache server try to locate file from /var/www/cgi-bin (RedHat/Fedora Linux) or /usr/lib/cgi-bin (Debian Linux).
Add following line to your domain configuration (vhost):

ScriptAlias /cgi-bin/ “/home/httpd/cyberciti.biz/httpdocs/cgi-bin/”

See also:

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 0 comments/add one below):