CGIs with Apache on Debian
Cory Spitz
spitzcor@cse.msu.edu
Wed, 29 Nov 2000 01:49:28 -0500
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