[Novalug] Apache permissions help
David Mallwitz
dave at dmallwitz.net
Sun Aug 8 19:28:09 EDT 2010
On Aug 8, 2010, at 3:15 PM, Jay Hart wrote:
> 4. Clearly, the permissions are not set right,
Nope. Your problem is the Apache chroot. For your chroot'd Apache instance, nothing exists outside of that chroot.
> Apache ServerRoot = /var/www/
> Apache DocumentRoot = /var/www/htdocs
> Squirrelmail resides at /var/www/htdocs/sqmail
Yes, that's how it's set up when the root of your directory structure is / - when Apache is run chroot'd to /var/www those directories don't exist. You have to think relative to the chroot. Example:
No chroot:
/var/www/htdocs/sqmail would be the full path to the sqmail files.
Chroot'd to /var/www:
/htdocs/sqmail is the full path the sqmail files.
BTW, you know you can stack options, right? -u -DSSL might work. Or you can ditch the OBSD system Apache and install a version that's not at end-of-life. I think the ports tree has the 2.0 and 2.2 series in it somewhere.
I'm an OpenBSD advocate for certain applications but web serving is not one of them; is there a reason why you want to do this on OBSD? Linux (or for that matter ANY other unix) makes it a lot easier to do this.
-D
More information about the Novalug
mailing list