Dear friends,
I planned to lear perl CGI, But I unable to configure it in my home PC.
I am using ubuntu 10.4 and apache2 web server.
When I was searching about it , I go this URL http://ubuntuforums.org/archive/index.php/t-422412.html.
I simply followed that points , which is there in that site.
But its not worked for me.
I have done this below things,
=> Installed libapache2-mod-perl2
=> Created the directory called cgi-bin under /var/www directory
=> Created the symbolic link like this,
ln -s /usr/lib/cgi-bin /var/ww/cgi-bin
=> modified the file called /etc/apache2/site-available/default and added this below lines,
<Directory "/var/www/cgi-bin">
AllowOverride None
Options ExecCGI
AddHandler cgi-script cgi pl
</Directory>
=> Restarted the server
=> created the testing script under /var/ww/cgi-bin/
tried to open the page using firefox. Whe i was given this http://localhost/cgi-bin/ address, its simply says,
Forbidden
You don't have permission to access /cgi-bin/ on this server.
=> Then I have given the 777 permission for /var/ww/cgi-bin/ and /usr/lib/cgi/ ( Recursive permission)
CGi is not working.
Can you plzz help me to make it work..
Thanks frds..
Bookmarks