Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-19-2004, 03:52 PM   #1
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Rep: Reputation: 15
moving webserver to different hard drive

hello linuxquestions forum,

my question is; i wish to move my apache webserver so it runs on hdc (which is a hd set running in raid1 configuraton). but i do not know the best way to do this or even if it is possible to do. hence, i would like some guidance on the matter so that i can make full use of the raid facility.

thank you in advance
Old 03-19-2004, 05:50 PM   #2
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
I am no expert, but I think if you simply copy all the directories (and included files) over to the new HD, and just change the line in /etc/httpd/conf/httpd.conf that says:

DocumentRoot "filepath"

to reflect the new HD path. For instance, if it's monted at /dev/raid_drive, change it to say:

DocumentRoot "/dev/raid_drive/folder-containing-your-site

and then restart the httpd server by going to system settings, server settings, services and highlighting httpd and choosing restart.

Good luck...
Old 03-20-2004, 08:15 AM   #3
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Original Poster
Rep: Reputation: 15
yes i had a feeling i had to do that but was just checking. i got confused when in diskdrake there was an option to mount the hd raid set as /var since all my server stuff in in /var. i thought i could set a mount point as /var and mdk would automatically move /var from hda root dirctory to raid set, so raid set would be hdc/var/my-server-is-now-over-here.

thanks for the advice jeffreybluml


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Hard Drive After Install PiscisBos Linux - Software 2 02-14-2005 12:14 AM
Moving Hard drive between PC's the_imax Linux - Hardware 13 11-20-2004 12:55 PM
Moving partitions from one hard drive to another robthebob Linux - Software 2 07-15-2004 04:47 AM
moving to a new hard drive n1wil Linux - Software 4 05-21-2003 02:38 PM
moving my hard drive illtbagu Linux - General 2 02-08-2003 04:56 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration