Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I am running Ubuntu 8.10. I for the life of me cannot get my cgi-bin working. I am running apache2 for a local web server for testing. I hope ...
  1. #1
    Just Joined! BobbyS's Avatar
    Join Date
    Oct 2008
    Location
    Alb, NM
    Posts
    40

    cgi-bin problem

    Hello,

    I am running Ubuntu 8.10. I for the life of me cannot get my cgi-bin working. I am running apache2 for a local web server for testing. I hope someone may help please.

    Thank you
    BobbyS

  2. #2
    Just Joined! linuxd's Avatar
    Join Date
    Apr 2009
    Location
    Dhaka, Bangladesh
    Posts
    40
    Ok well what I would do as a test is in your /var/www/cgi-bin/ dir put in a text file with just some rubbish, then point your browser to http://localhost/cgi-bin/NAMEOFTEXTFILE.txt and this file should be displayed, this will rule out permission issues on the cgi-bin dir and the .txt file – or alternatively you run from the /var/www/cgi-bin/

    chmod 777 filename.pl
    to give full rwx permissions.




    If I'm correct when specifying the AddHandler line, you're meant to put in the '.' eg;
    AddHandler cgi-script .cgi .pl
    That is according the the apache docs (Apache module mod_mime)

  3. #3
    Just Joined! BobbyS's Avatar
    Join Date
    Oct 2008
    Location
    Alb, NM
    Posts
    40
    Thanks for the response!

    I tried what you suggested and it still will not work.

Posting Permissions

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