CGIs with Apache on Debian
Matthew Hill
matthew@liquidweb.com
Wed, 29 Nov 2000 02:04:01 -0500
Cory,
It'd definitely help if you checked your apache error log for the exact
error (if you haven't that is)
/usr/local/apache/logs/error_log
Just a thought. Also ScriptAlias may need to be set for the cgi-bin.
Sincerely,
Matthew Hill
Cory Spitz wrote:
> Dennis had a bright idea. He told me to take the httpd.conf file form
> the Mandrake box and move it to the Debian box. I hacked it up a little
> to reflect what the Debian box has and it still doesn't work. When I
> add:
>
> AddHandler cgi-script .cgi
>
> it doesn't get executed and I get 500 Internal Server Error. When I
> isntall cgiwrap (just like I have on the Mandrake box) and try to add:
>
> AddHandler cgiwrapper .cgi
> Action cgiwrapper /cgi-bin/cgiwrap
>
> I get this error on apachectl configtest:
>
> Syntax error on line 889 of /etc/apache/httpd.conf:
> Invalid command 'Action', perhaps mis-spelled or defined by a module not
> included in the server configuration
>
> Why doesn't this work on Debian?
>
> Thanks
> -Cory
>
> Cory Spitz wrote:
> >
> > Hey all,
> > I've got CGIs running with Apache on a Mandrake system allright. Now,
> > I'd like to get them to work on a Debain system.
> >
> > I did an 'apt-get install apache'
> >
> > This set up everything ok, but I can't run CGIs in ~username/cgi-bin,
> > which I can do on my Mandrake box. I basically lifted the config
> > settings from one to the other but it's a no go. I get "Forbidden, you
> > don't have permission....." I must be missing something here. I've got
> > a <Directory /home/spitzcor/web/cgi> Options +ExecCGI> and I've got
> > AddHandler script-cgi .cgi. I don't know what else to do. What do I
> > need to add to the default intall after apt-get intall apache to make
> > this work. Thanks a lot.
> >
> > -Cory
> >
> > _______________________________________________
> > linux-user mailing list
> > linux-user@egr.msu.edu
> > http://www.egr.msu.edu/mailman/listinfo/linux-user
> _______________________________________________
> linux-user mailing list
> linux-user@egr.msu.edu
> http://www.egr.msu.edu/mailman/listinfo/linux-user