Thursday, August 7, 2008

Adding Perl CGI support into Apache server

Download ActivePerl from the internet

Modify the conf/httpd.con file in Apache


Add to the options in tag +ExecCGI, as follows


AcceptPathInfo On
Options FollowSymLinks +ExecCGI


Check that the file has

AddHandler cgi-script .cgi .pl


At the beginning of your program point where is your Perl executable are:

#!c:/program files/perl/bin/perl.exe

Just write your program and save it in .pl extension and access the file using

http://localhost/perlTest/hello.pl

No comments: