zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Enable CGI in Apache2

January 31, 2011 by Igor Drobot 2 Comments


If you want to enable CGI support for you domain or subdomain.

Install Apache2 mod-perl module:

1
aptitude install libapache2-mod-perl2

aptitude install libapache2-mod-perl2

Add this to the Apache configuration:

1
2
3
4
<directory "="" var="" www="" domain="" cgi-scripts"="">
    Allow from all
    Options All FollowSymLinks MultiViews
</directory>

<directory "="" var="" www="" domain="" cgi-scripts"=""> Allow from all Options All FollowSymLinks MultiViews </directory>

Only scripts in directory /var/www/cgi-scripts can be executed as CGI.

Filed Under: Debian, HTTP, Linux Tagged With: apache2 cgi, cgi, enable cgi