Pengen Punya WebSite instan kualitas intan ?

Monday, April 26, 2010

Enable cgi support on Apache

The Common Gateway Interface (CGI) is a standard (see RFC3875: CGI Version 1.1) that defines how webserver software can delegate the generation of webpages to a console application. Such applications are known as CGI scripts; they can be written in any programming language, although scripting languages are often used. [...read more...]

Before enable it, make sure perl and apache has been installed on the box.

configure httpd.conf

vi /usr/local/apache2/conf/httpd.conf
# add +ExecCGI on <Directory />
<Directory />
Options FollowSymLinks +ExecCGI
AllowOverride None
Order allow,deny
Deny from all
</Directory>

# add index.cgi on DirectoryIndex
<ifmodule dir_module>
DirectoryIndex index.php index.cgi index.html
</IfModule>

# add this line on <IfModule mime_module>
AddHandler cgi-script .cgi .pl

Add on vhost
<Directory "/home/prayoga/www/commands.org.uk/cgi-bin">
Options FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

restart service httpd

0 comments:

Post a Comment