LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-01-2007, 01:17 PM   #1
2-tone-joe
Member
 
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
Micro420
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
2-tone-joe
Member
 
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?
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:20 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
Open Source Consulting | Domain Registration