Re: fastcgi support in httpd(8)

2014-11-24 Thread Stuart Henderson
On 2014-11-22, Vadim Zhukov wrote: > Crazy idea just out of head: > > 1. Put /bin/sh and /usr/bin/kdump (both are statically linked) inside > chroot. Rename them if you feel unsafe. > 2. Write a shell script that runs 'exec ktrace -if ... perl ... "$@"'. Make > sure ktrace will be able to write it

Re: fastcgi support in httpd(8)

2014-11-22 Thread Riley Baird
> You didn't mention it, so I'll point out that you need to run > slowcgi(8) to proxy between FastCGI and CGI scripts. I just tried running slowcgi(8) and the script worked. Thanks!

Re: fastcgi support in httpd(8)

2014-11-22 Thread Christian Weisgerber
On 2014-11-22, Riley Baird wrote: > I have successfully setup the httpd(8) webserver, but only for static > webpages. I have been unable to get cgi (perl) scripts to run. You didn't mention it, so I'll point out that you need to run slowcgi(8) to proxy between FastCGI and CGI scripts. > Due to

Re: fastcgi support in httpd(8)

2014-11-22 Thread Quentin Rameau
> Hi, Hi > Due to the OpenBSD chroot, I have copied the folowing files into > /var/www. The libraries were generated from `ldd /usr/bin/perl`. > /usr/bin/perl > /usr/lib/libc.so.77.0 > /usr/lib/libm.so.9.0 > /usr/lib/libperl.so.15.0 > /usr/lib/libpthread.so.18.0 > /usr/lib/libutil.so.12.1 > /usr/l

Re: fastcgi support in httpd(8)

2014-11-22 Thread Vadim Zhukov
22 нояб. 2014 г. 12:54 пользователь "Riley Baird" < bm-2cvqnduybau5do2dfjtrn7zbaj246s4...@bitmessage.ch> написал: > > Hi, > > I am running OpenBSD 5.6-stable (without the X packages). > > I have successfully setup the httpd(8) webserver, but only for static > webpages. I hav

Re: fastcgi support in httpd(8)

2014-11-22 Thread Jona Joachim
On 2014-11-22, Riley Baird wrote: > Hi, > > I am running OpenBSD 5.6-stable (without the X packages). > > I have successfully setup the httpd(8) webserver, but only for static > webpages. I have been unable to get cgi (perl) scripts to run. That is because httpd(8) does not support plain CGI. It

Re: fastcgi support in httpd(8)

2014-11-22 Thread Riley Baird
> Try this: > > ---begin--- > #!/usr/bin/perl > > print "Content-Type: text/html\n\n"; > print "Hello!"; > ---end--- I've just done it, and I still get the same error.

Re: fastcgi support in httpd(8)

2014-11-22 Thread Koko Wijatmoko
On Sat, 22 Nov 2014 20:53:51 +1100 Riley Baird wrote: > A script as simple as the below brings up this error, but it has been > tested with other scripts: > > #!/usr/bin/perl > print "Hello!" > Try this: ---begin--- #!/usr/bin/perl print "Content-Type: text/html\n\n"; print "Hello!"; ---end--

fastcgi support in httpd(8)

2014-11-22 Thread Riley Baird
Hi, I am running OpenBSD 5.6-stable (without the X packages). I have successfully setup the httpd(8) webserver, but only for static webpages. I have been unable to get cgi (perl) scripts to run. Due to the OpenBSD chroot, I have copied the folowing files into /var/www. The libraries were generat