≡ Menu

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

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:

Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?

{ 0 comments… add one }

Leave a Comment