LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   moving webserver to different hard drive (http://www.linuxquestions.org/questions/linux-newbie-8/moving-webserver-to-different-hard-drive-159936/)

mouse46 03-19-2004 03:52 PM

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

jeffreybluml 03-19-2004 05:50 PM

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...

mouse46 03-20-2004 08:15 AM

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


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