[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to setup apache to support cgi?



On Sun, Sep 21, 2003 at 03:14:04PM -0700, Gavin Li wrote:
> Then, I modified this httpd.conf, like this:
> 1. enable httpd by change httpd-flags=NO to
> httpd-flags="" in /etc/rc.conf

Investigate the -u option.

> 6. I reboot the OBSD box

No need to reboot for apache...

> after reboot, I connect from another system to
> http://192.168.1.12/cgi-bin/printenv.cgi
> and the explore says:
> 
> Internal Server Error
> The server encountered an internal error or
> misconfiguration and was unable to complete your
> request.

Look at printenv.cgi, it uses perl directly.  Apache chroot(2)s to the
serverroot path.  So you will need copy perl into the chroot area for
this to work, or use the -u option.