zeldor.biz

Linux, programming and more

Copyright © 2025
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

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok