This question about Installation on Linux: Answered
Is it possible to store topics and attachments on a RAID?
Our shiny, powerful XServe running OS X 10.5 and Apache came with a nice big RAID. Following the documentation, our installation ended up in Library/Webserver, which means that big RAID is going to waste as our wiki fills up our boot disc with more and more files.
Is there some way we can move the topics and attachments to the RAID to take advantage of the increased speed and storage capacity?
Thanks,
--
DavidWolfe - 12 Nov 2008 - 18:36
Answer
You can change the location for your data and pub directory using the
configure
script. The settings are
PubDir
and
DataDir
. Point them to a directory that is stored in your RAID.
Then you can move your content manually to their new location.
Hope this helps
--
RafaelAlvarez - 12 Nov 2008 - 20:32
Thank you Rafael. So, I copied the
pub
and
data
directories to the RAID and set those settings in
configure
and set their permissions to
_www.
Everything seemed to work fine, so I moved the
pub
and
data
directories from inside
Library/WebServer
to another location. The text content of the site then worked, but the templates and CSS were all messed up and no images would load. I moved the
pub
and
data
directories
back to the
Library/WebServer
and everything is fine again. What step am I missing?
--
DavidWolfe - 13 Nov 2008 - 15:41
Did you remember to point your apache configuration at the new location of the
pub
dir?
--
CrawfordCurrie - 13 Nov 2008 - 17:23
The only things I changed were the
PubDir
and
DataDir
that Raphael mentioned. What else do I need to set or change? Our Server Admin screen, as far as I can tell, only shows the location of the base of the website.
Thanks for your help.
--
DavidWolfe - 13 Nov 2008 - 19:53
Duh! Sorry, my bad... I forgot to mention the apache config file.
You need to make your pub directory accesible by the webserver.
The easiest way is to put all the twiki files in the RAID, and point your webserver there. Make sure to fix all the errors that will be reported by
configure
(all of them paths that need to be changed to point to the new directory).
--
RafaelAlvarez - 13 Nov 2008 - 21:42