Home   >>   Apache HTTP Server   >>   How To Run CGI Scripts Anywhere In Your Root Directory
How To Run CGI Scripts Anywhere In Your Root Directory PDF Print E-mail
( 0 Votes )
How To - Apache HTTP Server
Written by Christian Foronda   
Friday, 01 October 2010 15:09

Install Apache perl module:

 

	# yum install mod_perl

Edit /etc/httpd/conf/httpd.conf and append the .pl extension:

 

	AddHandler cgi-script .cgi .pl

Search for the line that says "<Directory /> in the file. Add "+ExecCGI" to the "Options" list. The directive should look like this:

 

	<Directory />
Options FollowSymLinks +ExecCGI
AllowOverride None
</Directory>

Restart Apache:

 

	# service httpd restart



blog comments powered by Disqus
Last Updated on Thursday, 13 January 2011 21:05