This is slightly off topic, but since chroot has been integral to
openbsd's apache longer than pretty much anywhere else, I figure you
guys will probably have an answer for me.

I've been beating my head against the monitor for a couple of days
trying to figure out the best way to get some generated PHP code
(rails-style) to run both in and out of the chroot environment, since
it comes with a lot of paths that get hard coded into place, and I
need to use the same codebase on the webserver and from the console.

I finally had a minor epiphany, and created a /var/www/var/www symlink
that points up to the chroot:

$ pwd
/var/www/var
$ ls -l
total 0
lrwxr-xr-x  1 root  daemon  3 Feb 13 01:49 www -> ../

this works perfectly, my only question is whether there's any security
concerns with such a setup that I should be aware of.

Thanks in advance,
Marti

--
Systems Programmer, Senior
Electrical & Computer Engineering
The University of Arizona
[EMAIL PROTECTED]
(520) 465-6257

Reply via email to