How do I enable CGI or perl script execution in directories other than the ScriptAlias?
This is undoubtedly the number one question people ask about Apache. The answer, not surprisingly is quite simple… To persuade Apache to execute scripts in other locations, such as in directories where normal documents may also live, you must tell it how to recognize them – and also that it’s okay to execute them. For this, you need to use something like the AddHandler directive. In the specific section of your server’s httpd.conf configuration file, add or uncomment the following line: AddHandler cgi-script .cgi Add the .pl extension to the end of this line if you want to use .pl extensions If mod_perl is installed make sure the following is not commented out: