open your apache.conf file in write mode and add the following line.by default it's under /etc/apache2/ directory.
AddHandler cgi-script .cgi .pl
save the file.
Next, search for the line that says "
in the file. It should look something like this:[In this case /var/www/ is the document root.]
Options FollowSymLinks
AllowOverride None
Add "
+ExecCGI
" to the options list. The line now looks like this:Options FollowSymLinks +ExecCGI
generally you can find this in sites-enabled/000-default file.
Restart your apache web server.
test by typing URL of your perl script in web browser.
No comments:
Post a Comment