Control Web Panel

WebPanel => Installation => Topic started by: aussiewarrior on November 24, 2017, 10:12:03 AM

Title: website file path
Post by: aussiewarrior 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
Title: Re: website file path
Post by: Darkroom 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.