[TriLUG] Mandrake and Apache/cgi setup

neuronet at cyberrad.org neuronet at cyberrad.org
Sun May 11 17:58:07 EDT 2003


On Sun, May 11, 2003 at 05:47:42PM -0400, Jon Carnes wrote:
> You can check in the logs, that should tell you exactly what is going
> on:
>   /var/log/httpd/..

logs (checked previously, btw) just complained about permissions
but when scripts were run locally they worked fine...

> 
> Some items you can do to trouble shoot:
>  - make sure that /var/www.cgi-bin is set to 755 (and the files as well)

That did it (duh, I could have sworn I tried that before).  Thanks. :)

>  - set the owner of the file to "apache" (the user that the web-server
> runs as).

Made no difference.

>  - su as the user "apache" and then try to run the app from the
> directory.
> 
> Good luck - Jon Carnes
> 
> On Sun, 2003-05-11 at 17:24, neuronet at cyberrad.org wrote:
> > Pardon the newbie question...
> > 
> > I'm trying to setup cgi on a Mandrake 8.2 machine w/ Apache 1.3 to allow running perl
> > scripts.
> > 
> > This is pretty much a 'stock' installation.  No changes made to startup
> > scripts.
> > httpd and httpd-perl are both running.  (Is this OK or a no-no?)
> > 
> > 
> > /etc/httpd/conf/commonhttpd.conf contains:
> > 
> >  ScriptAlias /cgi-bin/ /var/www/cgi-bin/
> >  ScriptAlias /protected-cgi-bin/ /var/www/protected-cgi-bin/
> > 
> > and 
> > 
> >  <Directory /var/www/cgi-bin>
> >      #AllowOverride All
> >      AllowOverride None
> >      Options ExecCGI
> >      Order allow,deny
> >      Allow from all
> >  </Directory>
> > 
> > /var/www/cgi-bin is mode 711
> > 
> > test-cgi script in /var/www/cgi-bin mode 711
> > 
> > 
> > When I try to access http://<myserver>/cgi-bin/test-cgi I get an error 
> > 
> > " Forbidden
> >   You don't have permission to access /cgi-bin/test-cgi on this server  "
> > 
> > 
> > What am I missing??
> > Is something chrooted? (Where do I look to find out? Hey - Don't laugh. 
> > I said this was newbie material!! ;) )
> > 
> > 
> > Thanks.
> > -h
> > 
> > PS Same thing (different cgi-bin path) on a Debian box works just fine...  What gives???
> > 
> > 
> > _______________________________________________
> > TriLUG mailing list
> >     http://www.trilug.org/mailman/listinfo/trilug
> > TriLUG Organizational FAQ:
> >     http://www.trilug.org/faq/TriLUG-faq.html
> 
> _______________________________________________
> TriLUG mailing list
>     http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>     http://www.trilug.org/faq/TriLUG-faq.html



More information about the TriLUG mailing list