On Mon, Nov 17, 2025 at 11:20:36AM +0200, Masayoshi Fujimoto wrote: > Hi. I use OpenBSD 7.8. I cannot believe AI. > ChatGPT says , In OpenBSD, CGI execution is handled by slowcgi(8), >and CGI programs are executed outside the httpd chroot. >Therefore: If Perl is available at /usr/bin/perl, you do not need to copy it >into /var/www You do not need to copy any shared libraries Only the httpd >process >is affected by the chroot slowcgi runs CGI programs without being chrooted >This is the correct behavior.
I run both Apache2 and base httpd. Apache only requires a few things brought inside /var/www/. Base httpd requires a longer list of things to run perl scripts. Perl executables and libraries, what perl modules and their dependencies, your programs and dependencies. You will need to update everything inside the chroot when perl and the modules/libraries change. It can be complicated or pretty easy. I run base httpd for the simple perl and Apache for the hard stuff. But I use a lot of mod_perl, so it just makes sense for me to keep using my good (and bad) software. Study the problem with making the chroot work with base httpd. It is very useful and helpful knowledge for far beyond just the httpd server. -- Regards, Chris Bennett "Who controls the past controls the future. Who controls the present controls the past." George Orwell - 1984

