vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Have installed OpenBSD for the first time and found it relatively painless. But the aim of the exercise is to establish a)A spare webserver go hold my webpages until I have established a new permanent server - which probably also will be OpenBSD. and b) Learn enough about OpenBSD to do the switch mentioned ablove. 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. First I tried to make a symlink to this directory, but only got " -- not found on this server" when trying it out. Then I changed the httpd.conf to "DocumentRoot "/home/www/htdocs" ", but still no luck. Can somebody please point my nose in the right direction? What am I overlooking? Under Linux changing DocumentRoot worked. Anders |
| |||
| 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 |
| |||
| Anders Normann wrote: > Then I changed the httpd.conf to "DocumentRoot "/home/www/htdocs" ", > but still no luck. OpenBSD starts chrooted by default, so you set your DocumentRoot actually to /var/www/home/www/htdocs. http://www.openbsd.org/faq/faq10.html#httpdchroot |
| ||||
| 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 |