Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

apache problem

  • 22-04-2008 12:56pm
    #1
    Registered Users, Registered Users 2 Posts: 26,584 ✭✭✭✭


    i'm having a problem with apache and some perl scripts i'm trying to run.

    i had my website running under apache on a solaris 8 machine and i'm now trying to port it over to a suse linux machine.

    all my cgi files display fine and good but there's some pages that eg. index.cgi that calls a perl file inside cgi-bin/scripts/myfile.pl

    i'm viewing my page in firefox with firebug installed (it shows me where errors are occurring) it gives me this error when i click the button to execute this script
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    
    <html><head>
    
    <title>403 Forbidden</title>
    
    </head><body>
    
    <h1>Forbidden</h1>
    
    <p>You don't have permission to access /cgi-bin/scripts/myfile.pl
    
    on this server.</p>
    
    <hr>
    
    <address>Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8e PHP/5.2.5 mod_apreq2-20051231/2.6.0 mod_perl
    
    /2.0.2 Perl/v5.10.0 Server at xxxxx.xxxxx.xx Port 80</address>
    
    </body></html>
    
    that led me to believe there were incorrect permissions on my directory structure which is like the following:
    Mydir
        - cgi-bin
            - scripts
        - html
    
    all directories and files in this structure have permission of drwx-rx-rx or (chmod 755).

    the scripts were working perfectly before moving to the new server.

    anyone know what else could be causing this problem?


Comments

  • Registered Users, Registered Users 2 Posts: 16,288 ✭✭✭✭ntlbell


    Cremo wrote: »
    i'm having a problem with apache and some perl scripts i'm trying to run.

    i had my website running under apache on a solaris 8 machine and i'm now trying to port it over to a suse linux machine.

    all my cgi files display fine and good but there's some pages that eg. index.cgi that calls a perl file inside cgi-bin/scripts/myfile.pl

    i'm viewing my page in firefox with firebug installed (it shows me where errors are occurring) it gives me this error when i click the button to execute this script
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    
    <html><head>
    
    <title>403 Forbidden</title>
    
    </head><body>
    
    <h1>Forbidden</h1>
    
    <p>You don't have permission to access /cgi-bin/scripts/myfile.pl
    
    on this server.</p>
    
    <hr>
    
    <address>Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8e PHP/5.2.5 mod_apreq2-20051231/2.6.0 mod_perl
    
    /2.0.2 Perl/v5.10.0 Server at xxxxx.xxxxx.xx Port 80</address>
    
    </body></html>
    
    that led me to believe there were incorrect permissions on my directory structure which is like the following:
    Mydir
        - cgi-bin
            - scripts
        - html
    
    all directories and files in this structure have permission of drwx-rx-rx or (chmod 755).

    the scripts were working perfectly before moving to the new server.

    anyone know what else could be causing this problem?

    in the same dir if you make a test index.html can you see that?

    What is above Mydir?


  • Registered Users, Registered Users 2 Posts: 26,584 ✭✭✭✭Creamy Goodness


    cannot access a test.html in there after i created one.

    the directory structure is

    /home/neil/Mydir...


  • Registered Users, Registered Users 2 Posts: 7,740 ✭✭✭mneylon


    Check the log files


  • Registered Users, Registered Users 2 Posts: 6,590 ✭✭✭daymobrew


    What is the ScriptAlias setting in httpd.conf? I would expect something like:
    [PHP]ScriptAlias /cgi-bin/ "/home/neil/Mydir/cgi-bin/"
    <Directory "/home/neil/Mydir/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    [/PHP]


  • Registered Users, Registered Users 2 Posts: 3,890 ✭✭✭cgarvey


    Like Blacknight says ... log lo lo log logs


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 16,288 ✭✭✭✭ntlbell


    is neil world readable?


Advertisement