From: Tom Smyth Subject: Chroot Hotels / Chroot Resorts (as opposed to Jails ) foswiki To: OpenBSD Ports Date: Thu, 30 Apr 2026 21:40:12 +0100 Hi Folks, Im trying to move web workloads to perl based application servers... Im trying foswiki, with httpd on OpenBSD... for the perl functionality any suggestions on how to elegantly import the necessary directories out of the chroot jail One thought was to mfs mount some of the perl paths outside of the chroot inside of the chroot so when I upgrade / patch the system it will always have a fresh copy on reboot ? or am I over complicating and use symlinks ? If I get something half decent working Ill try to submit a package for foswiki Im drafting a set of dependencies based on the foswiki install page any thoughts or advice welcome cp /etc/examples/httpd.conf /etc/httpd.conf #edit httpd.conf to get the server up and running, mkdir /var/www/htdocs/foswiki cd /var/www/htdocs/foswiki ftp -C https://github.com/foswiki/distro/releases/download/FoswikiRelease02x01x11/Foswiki-2.1.11.tgz tar -xzf Foswiki-2.1.11.tgz mv Foswiki-2.1.11.tgz /root/ cd Foswiki-2.1.11 mv * ../ cd .. rm -R Foswiki-2.1.11 pkg_add p5-Algorithm-Diff #pkg_add p5-Archive-Tar #not found pkg_add p5-Authen-SASL pkg_add p5-CGI pkg_add p5-CGI-Session pkg_add p5-Crypt-PasswdMD pkg_add p5-Crypt-PasswdMD5 pkg_add p5-Digest-SHA1 pkg_add p5-Email-Address-XS pkg_add p5-Email-MIME #pkg_add p5-Encode not found pkg_add p5-Error pkg_add p5-File-Copy-Recursive pkg_add p5-HTML-Parser pkg_add p5-IO-Socket-SSL #pkg_add p5-IO-Socket-IP not found pkg_add p5-JSON pkg_add p5-Locale-Codes pkg_add p5-LWP-Protocol-https pkg_add p5-DBI pkg_add p5-Crypt-X509 pkg_add p5-Convert-PEM sh /etc/weekly cd /var/www/htdocs/foswiki/tools perl rewriteshebang.pl #/usr/bin/perl is the path to perl #edit sample foswiki_httpd.conf #convert #replace "/var/www/foswiki" with "/var/www/htdocs/foswiki" #may need to be changed to take account of chroot "/htdocs/foswiki" #replace "deny from all" with block return #replace with {location directives }