AMP AMP

How to Rearrange an account in WHM/cPanel

To rearrange an account in WHM/cPanel

To move the accounts between the hard disks - Rearrange an account in WHM/cPanel is explained in this tutorial with screenshots. For example if you have 3 domains example1, example2, example3 and you have 2 hard disks 1TB and 500 GB. So if you want to assign example1 domain to 1TB hard disk and example2 example3 to 500 GB hard disk because the example1 domains requires more space to be used. So using rearrange we can manage the domains between the hard disks.

Login to the server from WHM page and go to Account Information&rarr list Accounts


home_page
list_accounts
In list of accounts, you can search for the domain using the username/domain name, reseller/owner, package and ip address.

Here there are two domains which is mounted in the home directory. Now we will rearrange the example1.linuxhelp.com domain to /home2 directory.




Now login to the server in terminal. In the command line, we will go to home directory and list using ls -l. You can find the example1linuxhel and example2linuxhelp domain users. For this rearranging setup, we have added one more hard disk to the server.


To check hard disk available

Run the following command to check for the hard disks available.

To create a directory /home2

Now we will mount this directory to new hard disk /dev/sdb. So now using df -h command, you can view that /home2 is mounted to 500GB hard disk.

Once this setup is completed, Go to WHM

Navigate to Account function and click rearrange an account.

Now select the account to be rearranged and click rearrange.


Now it asks for confirmation with the current mount point and new mount point details. Now click move account and it starts processing.



You may lose this window and view the transfer on the command line

Now go back to the command line and check using ls -l command


Here you can see that the examplelinuxhelp is redirected to /home2/examplelinuxhel/


Tag : WHM cPanel
FAQ
Q
How to install laravel on cpanel sub-domain?
A
Follow these steps to install laravel on cpanel sub-domain
1. first install laravel in the main domain
2. And then run the commands in the respective user
3.Finally use this path and install it global "laravel/installer" export PATH="~/.composer/vendor/bin:$PATH" larav
Q
How to deny the particular IP to access particular domain in cpanel?
A
If the IP is blacklisted through WHM, it will block all over the server
So the exact solution you need is IP blocker
Go to particular Domains cpanel and search for IP blocker. Add the particular IP
Q
How to check available hard disk?
A
Run the following command to check for the hard disks available
#fdisk -l
Q
Is there any option to create a directory /home2?
A
Yes, options are there. will mount this directory to new hard disk /dev/sdb
now using df -h command, you can view that /home2 is mounted to 500GB hard disk.
Q
How to rearrange an Account?

convert --version
bash: /usr/bin/convert: No such file or directory
A
Use the following commands to rearrange an Account
1.Here there are two domains which is mounted in the home directory
2.Now we will rearrange the example1.linuxhelp.com domain to /home2 directory