Author Topic: Add more domains to second hard disk - how ?  (Read 11035 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Add more domains to second hard disk - how ?
« 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

Offline
*
Re: Add more domains to second hard disk - how ?
« Reply #1 on: July 12, 2018, 09:31:48 PM »
I'm wondering too

Offline
*
Re: Add more domains to second hard disk - how ?
« Reply #2 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.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: Add more domains to second hard disk - how ?
« Reply #3 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

Offline
*
Re: Add more domains to second hard disk - how ?
« Reply #4 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

Offline
*
Re: Add more domains to second hard disk - how ?
« Reply #5 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

Offline
*
Re: Add more domains to second hard disk - how ?
« Reply #6 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

Offline
*
Re: Add more domains to second hard disk - how ?
« Reply #7 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/

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