List: openbsd-misc
Subject: New httpd with slowcgi not running Perl scripts
Hi openbsd-misc readers !
I have installed the OpenBSD 5.8.
In chroot mode the new httpd started with slowcgi and perl.
But perl isn't running to get dynamic pages.
I can see process httpd working and the slowcgi socket
"/run/slowcgi.sock" to interface with fastcgi.
Some tests, in command line, I have the perl working in chroot:
---
# chroot -u www /var/www /cgi-bin/test.pl
Content type: text/html
hello world#
---
Now with the browser doing requests, I have access to static pages.
But when I request perl script I have the download of that file.
It's like perl isn't handling Perl scripts.
In http logs I can see "HTTP STATUS 200" for both cases.
My /etc/httpd.conf is something like this ...
---
ext_addr="*"
server "default" {
listen on $ext_addr port 80
}
location "/cgi-bin/*" {
fastcgi
root "/"
}
types {
include "/usr/share/misc/mime.types"
}
---
My /etc/rc.conf is ...
---
httpd_flags=""
slowcgi_flags=""
---
My test script is ...
---
#!/usr/bin/perl
print "Content type: text/html\n\n";
print "hello world";
---
Then, do you have any suggestions to solve this problem ?
Thank you !
[]s,
Daniel Santos