For most experienced PHP developers out there, the thought of making web page code that runs as root is a very, very scary idea. However, this new article might help to lessen some of that fear (at least for BSD users).
So why chroot instead of jail? Jailing processes is actually a simple task. Basically i want to help you out with 2 areas in this article. The first being to get apache and php chrooted while working with a chrooted mysql. And the second i hope you can figure out from this how to chroot your own processes. Once you figure out how to setup chroot trees configuring jails should not be a challenge for you at all.
In Chrooting Apache and PHP in BSD Howto, the author steps you through installing Apache with SSL, setting up access for Apache to certain BSD devices, and move swiftly through the rest of the process to the ultimate goal - Apache safely running PHP scripts as root...




