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