You can move a cPanel account's home directory to a different path on the server using WHM. This process allows you to reorganize your server's file structure while maintaining the account's existing data and configuration.
Before you begin
You will need:
Root access to the WHM interface
The current home directory path of the account
The target home directory path where you want to move the account
Rearrange the account home directory
Log in to WHM.
Navigate to Home > Account Functions > Rearrange-Account.
Select the account you wish to move from the list.
Enter the new path in the New Home Directory field.
Click Rearrange.
Warning: Moving a home directory involves moving all files and folders associated with that account. Ensure you have a current backup of the account before proceeding to prevent data loss during the move.
Confirm the result
The system will display a success message confirming the move.
You can verify the change by navigating to Home > List Accounts in WHM and checking the Home column for the updated path.
The account's website and email services should remain functional immediately following the move.
Limitations
This process only changes the file path on the local server. If you have external services or specific scripts that rely on a hardcoded absolute path to the old directory, you must update those configurations manually after the move.
