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 and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment