View Single Post

   
  #2 (permalink)  
Old 02-16-2008, 08:05 AM
Andreas Schweitzer
 
Posts: n/a
Default Re: OpenBSD 3.8 - changing DocumentRoot in Apache

On 2005-12-17, Anders Normann <sjefen@andnorm.net> wrote:
>
> The problem(or maybe the "challenge") is that I allocated to little
> space for /var. When I got Apache operational it went well until /var
> was full. There is plenty room on my /home partition so I moved all my
> webpages to /home/www/htdocs.


If you still can afford it right now, split the home partition
into two partitions. One for /home and one for
/var/www - of course, this means you need to backup your
existing /home to somewhere else, because you need to
delete it in this process.
See disklabel(8) and look for -E and read
http://www.openbsd.org/faq/faq14.html

> Can somebody please point my nose in the right direction? What am I
> overlooking? Under Linux changing DocumentRoot worked.


You are overlooking that apache is chrooted:
http://www.openbsd.org/faq/faq10.html#httpdchroot

Andreas
Reply With Quote