Current time: 05-08-2024, 01:07 AM Hello There, Guest! (LoginRegister)


Post Reply 
Change Root Directiry
Author Message
Brun Offline
Newbie
*

Posts: 7
Joined: Apr 2008
Reputation: 0
Post: #1
Change Root Directiry
I have 2 partition (/dev/sda1 and /dev/sda2).
Mount point :
/dev/sda1 - /
/dev/sda2 - /home
I want to change a directory from /var/www on /home/vhost and replace all site, mail, logs.

How to me to do it?
05-29-2008 12:46 AM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #2
RE: Change Root Directiry
You actually want to move your web root to the /home partition? Do you just want to do it because your server has more space on /home?
05-29-2008 12:48 PM
Find all posts by this user Quote this message in a reply
Brun Offline
Newbie
*

Posts: 7
Joined: Apr 2008
Reputation: 0
Post: #3
RE: Change Root Directiry
Yes. And it`s safety.
05-30-2008 11:24 PM
Find all posts by this user Quote this message in a reply
Brun Offline
Newbie
*

Posts: 7
Joined: Apr 2008
Reputation: 0
Post: #4
RE: Change Root Directiry
So. Who does have any idea ?
This is important. At breaking the systems given can be easily picked up thread.
06-02-2008 04:38 PM
Find all posts by this user Quote this message in a reply
Ali_ix Offline
Newbie
*

Posts: 7
Joined: Jun 2008
Reputation: 0
Post: #5
RE: Change Root Directiry
As said in other thread, copy the /var/www/ content to /home partition and then edit your fstab and mount /dev/sda2 (currently as home) to /var/www.
06-20-2008 12:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)