Enabling execution of cgi scripts on linux (debian)

This is how to enable the execution of cgi scripts on linux. Add the following code the /etc/apache2/httpd.conf file.

ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Directory "/var/www/cgi-bin/">
    Options ExecCGI
    AllowOverride All
    Order allow, deny
    Allow from all
</Directory>

Remember to make the files that are put there executable by the doing the following.

% chmod +x file.cgi

Lastly you should have had the cgi module loaded in apache.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.