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 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/libexec/ls.so My httpd.conf is: # $OpenBSD: httpd.conf,v 1.10 2014/08/06 20:29:54 reyk Exp $ # # Macros # ext_addr="egress" server "default" { listen on $ext_addr port 80 location "/cgi-bin/*" { fastcgi # The /cgi-bin directory is outside of the document root root "/" } } Using a web browser on another computer, http://192.168.1.55/cgi-bin/script.pl simply says "500 Internal Server Error". A script as simple as the below brings up this error, but it has been tested with other scripts: #!/usr/bin/perl print "Hello!" Thanks for reading, Riley Baird