Quote:
|
Originally Posted by vvaldir
You may need to change the AddHandler line in your httpd.conf file to run perl scripts.
From:
#AddHandler cgi-script .cgi
To:
AddHandler cgi-script .cgi .pl
That may help solve the problem you have currently.
|
That will only work if the server is set to run .cgi files outside the cgi-bin folder.
To set where cgi's can run, in the httpd.conf file you will see this line (per virtual host):
PHP Code:
ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin/
you can change this to:
PHP Code:
ScriptsAlias / /home/username/public_html/
This will allow and folder under the public_html folder to run a cgi script.
But remember, if its .pl file, this does not matter, a perl file will run outside the cgi-bin folder by defualt.