On Fri, 2002-08-02 at 12:36, Nathan Hopper wrote:
> I've been unable to get CGI programs to run on Apache. I've changed the
> permissions on the test-cgi program from the /var/www/cgi-bin/ to
> executable, with the owner/group as apache:apache. In the cgi-bin, I've
> checked to ensure that it can run cgi programs in the apache setup. But I
> still get a 'forbidden' when I try to run anything. I tried typing
> http://host/cgi-bin/test-cgi and test-cgi.cgi, but to no avail.
> 
> [SNIP]

Make sure that the Apache configuration files have suitable "Allow from"
settings.  I vaguely recall that I had to enable access for CGI scripts.

Look at /etc/httpd/conf/commonhttpd.conf and locate the section that
looks like:

    <Directory /var/www/cgi-bin>
        AllowOverride All
        Options ExecCGI
        Deny from all
        Allow from 127.0.0.1
    </Directory>
    
The above example allows CGI only to localhost.  Replacing the "Deny
from all" line with "Allow from all" will do the obvious.

Don't forget to restart Apache after changing the configuration.  This
is done (as root) with "service httpd restart"

Seth
[EMAIL PROTECTED]



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to