Re: Trying to move my httpd chroot

2016-03-20 Thread hans
On Mar 16 20:58:59, alan01...@gmail.com wrote: > I don't have enough room in / to have my htdocs there so I want to > move it to /usr/htdocs. This is in 5.7. No problem I thought, I've > had to do it before. So my /etc/httpd.conf looks like this: > > chroot "/usr/htdocs" Why din't you use he s

Re: Trying to move my httpd chroot

2016-03-19 Thread Rick Hanson
On Wed, Mar 16, 2016 at 8:58 PM, Alan Corey wrote: > I don't have enough room in / to have my htdocs there so I want to > move it to /usr/htdocs. This is in 5.7. No problem I thought, I've > had to do it before. So my /etc/httpd.conf looks like this: > > chroot "/usr/htdocs" It's probably supp

Re: Trying to move my httpd chroot

2016-03-19 Thread Alan Corey
Bingo. /usr does it. One clue I guess was that it was logging into /usr/logs. With Apache at least the chroot dir wasn't the same as the document root. And you don't want the logs dir readable through the httpd. So essentially there's htdocs and logs inside of what you specify as a chroot dir.

Re: Trying to move my httpd chroot

2016-03-19 Thread hans
On Mar 16 22:04:19, alan01...@gmail.com wrote: > Bingo. /usr does it. One clue I guess was that it was logging into > /usr/logs. With Apache at least the chroot dir wasn't the same as the > document root. With default httpd, it also isn't. > And you don't want the logs dir readable through the

Re: Trying to move my httpd chroot

2016-03-19 Thread Kevin Chadwick
> Your webserver should NOT be in /. > Your /usr should not have 129G free. > Your web server should not be in /usr. In case your thinking does it matter beyond doing things correctly! What sprang to my mind immediately is that those partitions won't have things like nosuid,noexec settable without

Re: Trying to move my httpd chroot

2016-03-19 Thread Craig Skinner
Hi Alan, On 2016-03-16 Wed 20:58 PM |, Alan Corey wrote: > I don't have enough room in / to have my htdocs there so I want to > move it to /usr/htdocs. This is in 5.7. Re-install (5.8) with a better partitioning layout: $ mount -d /var/www exec: mount_ffs -o rw -o nodev -o nosuid -o noexec -o so

Re: Trying to move my httpd chroot

2016-03-19 Thread Nick Holland
On 03/16/16 20:58, Alan Corey wrote: > I don't have enough room in / to have my htdocs there so I want to > move it to /usr/htdocs. This is in 5.7. No problem I thought, I've > had to do it before. So my /etc/httpd.conf looks like this: > > chroot "/usr/htdocs" hint: the default is /var/www.