CGI not running from specified location in httpd.con

Discussion in 'Apache' started by MPRY, Mar 23, 2010.

  1. #1
    Hello - This is my first post here. I'm hoping someong will be willing to help me with what I'm hoping is a perfectly obvious issue - only I'm not seeing it.

    I am running Apache2 on Ubuntu 8.04, which has most of its default security settings on.
    I am able to run a CGI program from location 127.0.0.1/cgi-bin/hello.pl but it's running from my cgi-bin on /usr/lib/cgi-bin, not from /usr/local/apache2/cgi-bin. From what I can tell in my httpd.conf file, the ScriptAlias is set correctly, as are the directories. I'm attaching my httpd.conf file.

    I have a few other issues too, but hopefully once I get that one the others will make more sense.
     

    Attached Files:

    MPRY, Mar 23, 2010 IP
  2. MPRY

    MPRY Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I figured it out. Apache needed to be started as root, using /usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf

    Everything works beautifully now.
     
    MPRY, Mar 23, 2010 IP