Author Topic: website file path  (Read 3160 times)

0 Members and 1 Guest are viewing this topic.

website file path
« on: November 24, 2017, 10:12:03 AM »
Hi All

New to CWP.

I have 2 hdd installed on my server. hdd1 has the main part of CWP installed. Is there a way to have all website files saved on hdd2?

And if so how would I do it :P

Thanks in advance

Re: website file path
« Reply #1 on: November 26, 2017, 07:34:02 PM »
There is no automatic way to do this. Probably the easiest thing to do would be to create a new mount point in fstab and mount it to /home2 or something similar. Then after you create a new user, home on the command prompt as root and do something like:

mkdir /home2/username
chown -R username:username /home2/username
cp -a /home/username/public_html/* /home2/username/
rm -rf /home/username/public_html
ln -s /home/username/public_html /home2/username

I'd create a test account and try it before doing it with a real client/site first but you might also be able to migrate existing web directories to the second drive with that too.