LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 03-19-2004, 04:52 PM   #1
mouse46
Member
 
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, 06:50 PM   #2
jeffreybluml
Member
 
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, 09:15 AM   #3
mouse46
Member
 
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
 
  


Reply


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 01:14 AM
Moving Hard drive between PC's the_imax Linux - Hardware 13 11-20-2004 01:55 PM
Moving partitions from one hard drive to another robthebob Linux - Software 2 07-15-2004 05:47 AM
moving to a new hard drive n1wil Linux - Software 4 05-21-2003 03:38 PM
moving my hard drive illtbagu Linux - General 2 02-08-2003 05:56 PM


All times are GMT -5. The time now is 11:36 PM.

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