Control Web Panel

WebPanel => Installation => Topic started by: tdd on July 12, 2018, 05:44:42 PM

Title: Add more domains to second hard disk - how ?
Post by: tdd on July 12, 2018, 05:44:42 PM
Hi,

My primary drive is near full and in CWP I want to add more domains however those domains need to be hosted in second hard dosk mounted as /home2

How to make CWP host new domains on /home2 ?

Thanks
Title: Re: Add more domains to second hard disk - how ?
Post by: mrfade on July 12, 2018, 09:31:48 PM
I'm wondering too
Title: Re: Add more domains to second hard disk - how ?
Post by: studio4host on July 13, 2018, 01:30:21 PM
try to do a symlink or mount it as /home as this is the best option.
Not sure about symlink if this will be working but you can try.
Title: Re: Add more domains to second hard disk - how ?
Post by: mrfade on July 13, 2018, 01:47:13 PM
https://www.inmotionhosting.com/support/website/ssh/using-a-secondary-hard-drive-on-a-dedicated-server in this article whm panel has an option to select home directory. Is there an option in CWP panel or do you consider to add this feature
Title: Re: Add more domains to second hard disk - how ?
Post by: tdd on July 13, 2018, 02:32:21 PM


>>try to do a symlink or mount it as /home as this is the best option.

can't as /home is in use and its already full.

Any other official solution from CWP ?

Thanks
Title: Re: Add more domains to second hard disk - how ?
Post by: atiqch on July 04, 2019, 08:58:37 AM
Hi:
Is there any solution:
CWP instance /home disk is full
I added new disk and mounted as /home2
now I need to create new CWP accounts. Is there possibility to setup /home2 for new CWP account creation ?
looking forward
Title: Re: Add more domains to second hard disk - how ?
Post by: mrfade on July 04, 2019, 09:05:24 AM
create a new user and move folder to /home2/username and create symlink from /home/username to /home2/username
Title: Re: Add more domains to second hard disk - how ?
Post by: 311damas on December 15, 2020, 06:51:07 AM
Default CWP Free cant built /home2 to make new account.
You can add New Disk to /home for secondary data or data sub domain.

How to Add New Disk for Sub Domain -> click https://artikeldamas.wordpress.com/2020/12/13/menambah-disk-di-cwp-server-centos-7/ (https://artikeldamas.wordpress.com/2020/12/13/menambah-disk-di-cwp-server-centos-7/)

or Get try it:
1. built Sub Domain into your Panel Domain (etc: file.yourdomain.com);
2. Mount disk
Code: [Select]
sudo mount /dev/sda* /home/useraccount/file.yourdomain.com3. Make New Disk can Boot in your server CentOS
- Input this script into /etc/fstab
- Input at last
Code: [Select]
/dev/sda* /home/useraccount/file.yourdomain.com ext4 defaults 0 04. and Reboot
5. cek your mount
Code: [Select]
df or
Code: [Select]
lsblk6. Give permission access user account
Code: [Select]
chmod u=rwx,g=rx,o=r /home/useraccount/file.yourdomain.com
7. Go to CWP Admin, menu User Account -> Fix Permissions -> cheklist "Fix Permissions" and then click "Fix Selected Issues"
8. You can access via FTP and check your file uploaded in URL file (cannot URL folder)
try: https://file.domainanda.com/mp3/surah-alfatihah.mp3

Good Job, me Damas T