Re: newbie CGI error Premature end of script headers.
- From: espie@xxxxxxxxx (Marc Espie)
- Date: Wed, 10 Feb 2010 23:59:30 +0000 (UTC)
In article <64d37126-5b6b-4365-875a-1b67ec9502da@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Myron <delcofiftyfive@xxxxxxxxx> wrote:
In my spare time I have just started a home OpenBSD 4.6, running
Apache and want to use Perl.
Apache is working, Perl is working from the command line, but CGI
I am a newbie, a little UNIX sysadmin experience, but this little
webserver hobby has me stumped.
I have installed OpenBSD4.6 clean on an old i386 machine.
I have turned on ftp, samba, and Apache, and they work.
EXCEPT CGI. First I went to httpd.Apache.org/docs/2.0/howto/cgi.html
and incorrectly did everything that page said to permit CGI. And it
didn't work. So understanding a little more about the httpd.conf, now
my approach is to allow the ScriptAlias to permit /usr/www/cgi-bin/ to
be the cgi executable directory. Last night I got a clean httpd.conf
from the tarball and as I understand it, it looks like it should work
the way it is 'right out of the box'?
By default, httpd is chroot'ed. For cgi scripts to work, you must have
everything you need living under /var/www.
To check whether that's the case, try out non-chroot'ed httpd, that is
start it with -u.
- Prev by Date: Re: newbie CGI error Premature end of script headers.
- Next by Date: Re: newbie CGI error Premature end of script headers.
- Previous by thread: Re: newbie CGI error Premature end of script headers.
- Next by thread: Re: newbie CGI error Premature end of script headers.