Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-01-2007, 01:17 PM   #1
Registered: Dec 2007
Posts: 31

Rep: Reputation: 15
Question Moving /var/www/

I am storing an ever increasing amount of image files in my web directory structure. I need to move the server and somehow place the /var/www/ onto a SAN. What is the best way for me to do this? Is there an option in httpd.conf or do I symlink it somehow? I have many scripts that I don't want to rewrite in order to make this move. . .

I am running CentOS 5.

Cheers All!
Old 12-01-2007, 01:21 PM   #2
Senior Member
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Should be a piece of cake. You can just move the contents of your /var/www out and mount your SAN onto /var/www, or you can edit edit the httpd.conf and change the root directory. Since your scripts, I assume, are all pointing to /var/wwww, I would just mount the SAN onto /var/www and copy the contents back. YOu should not noticing anything different other than more disk space with your new SAN. If you're using SELinux, make sure the directory and files are on the correct context settings.

Last edited by Micro420; 12-01-2007 at 01:22 PM.
Old 12-01-2007, 01:27 PM   #3
Registered: Dec 2007
Posts: 31

Original Poster
Rep: Reputation: 15
so mount the san using nfs and move /var/www/ to the san. . . . can I somehow remove my old /var/www/ and replace it with the one mounted on the san?


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
Who should own /var/www and it's contents? morrolan Linux - Server 4 04-03-2007 02:55 PM
VSFTPD /var/www mmethe Linux - Software 2 05-10-2005 04:37 AM
help in /var/www/html/!! chidomen Linux - Newbie 4 01-13-2005 11:02 AM
Moving /var/adm and /var/lib - why does it hurt? J_Szucs Linux - General 1 09-15-2004 06:46 PM
thanks boss....... now i don't have a /var/www joesbox General 4 11-08-2003 01:38 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:46 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