Results 1 to 5 of 5

Thread: perl cgi configuration setting in my homw PC

  1. #1
    Join Date
    Oct 2009
    Beans
    4

    perl cgi configuration setting in my homw PC

    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..
    Last edited by Lesliesathish; September 13th, 2010 at 08:13 PM.

  2. #2
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,588
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: perl cgi configuration setting in my homw PC

    Do you really want http://localhost/cgi-bin/ to be browseable? That's unusual.

    Don't you simply want to run scripts e.g. http://localhost/cgi-bin/myscript.pl ? Is this working?

    Also, there seems to be some confusion between /var/ww/ and /var/www/ in what you have posted. Are these just typos in your posting or did you make these mistakes when setting it up?
    Last edited by spjackson; September 13th, 2010 at 11:34 PM.

  3. #3
    Join Date
    Oct 2009
    Beans
    4

    Re: perl cgi configuration setting in my homw PC

    Hi friend,

    => http://localhost/cgi-bin/myscript.pl Its not working.
    => Its /var/www/. That is just typos in my post.
    => I want to run the script as a normal user. I don't want run the script as a root user.
    I already configure the PHP. For that I have created the public_html in my home directory and just made a softlink from /var/www/. Now I can write the PHP script from my home itself.
    Likewise I want to do frd. Can U plzzz help me.

    Thank U.

  4. #4
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,588
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: perl cgi configuration setting in my homw PC

    Quote Originally Posted by Lesliesathish View Post
    So what error do you get in your browser and in the Apache error log?

  5. #5
    Join Date
    Oct 2009
    Beans
    4

    Re: perl cgi configuration setting in my homw PC

    Hi frd.. I have configure it successfully... Thanks for ur rply..
    Thanks a lot ..

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •