r/openbsd • u/Yokohamanta • 16h ago
Multimedia server inside a chroot environment
I understand that, by default, OpenBSD's http daemon (httpd.conf) runs in a chroot environment (/var/www). However, what I do not understand is why this is causing PHP hangups when I try to upload something to my Wordpress media folder. In addition, audio files (.m4a, .mp3) that are referenced by HTML5 pages throw an error when I try to play them ...
Basically, my question is: what do I need to do with my server configuration to allow the web server to properly handle these files. I would like to be able to use PHP and am wondering if I need to create a directory for it within the chroot directory (/var/www) for it to work.
Any useful guides on this are appreciated. I am relatively new to OpenBSD.
