Find the answer to your Linux question:
Results 1 to 3 of 3
I have changed the permissions of the perl script to 777. I have logged in as root. Although I still face this problem. Forbidden You don't have permission to access ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    1

    Error running perl scripts on Apache

    I have changed the permissions of the perl script to 777. I have logged in as root. Although I still face this problem.

    Forbidden

    You don't have permission to access /cgi-bin/7a.pl on this server.
    Apache/2.2.10 (Fedora) Server at localhost Port 80


    Any Ideas?

  2. #2
    Just Joined!
    Join Date
    Nov 2008
    Location
    Virginia, USA
    Posts
    18
    Can you post the output of
    Code:
    ls -l /var/www/cgi-bin # Or whatever your webroot/cgi-bin is.
    Keep in mind that the script is being run by (probably) the apache user. So the permissions will need to be the same as when you want to allow another user to run one of your scripts. Are you using the default httpd.conf or is it heavily modified? Also, right after you try to view the page run
    Code:
    tail /var/log/httpd/error_log
    and post it here please. You can remove IPs and such.

  3. #3
    Just Joined!
    Join Date
    Dec 2009
    Posts
    1
    Hello,

    I faced the same problem. There is some problem in the port of my system. First you check the server that not any other server not installed on the same port.




    Regards,
    Olivia


    Newtonit.co.uk

Posting Permissions

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