View Single Post

   
  #4 (permalink)  
Old 02-16-2008, 07:05 AM
Anders Normann
 
Posts: n/a
Default Re: OpenBSD 3.8 - changing DocumentRoot in Apache

On 17 Dec 2005 22:39:09 GMT, Andreas Schweitzer
<aschweitzer@hs.uni-hamburg.de> wrote:

>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


This was what I was looking for, but I messed things up and ended up
doing a reinstall. Except for the web-pages there wasn't much to lose
anyway. After reinstall I have a lot of room in my /var/www partition
and after some tinkering I'm able to ftp up my webpages, and they
show up, at least on my local net. Next task is to bring them on to
the Internet, but that only involves an change to the forwarding of
ports on my router so it should be no sweat.
>
>> 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
>

Yes, that is what I did. Had read about it, but completely forgot when
trying to apply my newly aquired knowledge.
>Andreas


Thank you for the assistance. It is always nice to get a nudge in the
right direction.

Anders
Reply With Quote