copy one CPANEL account to another on same server
I have an odd requirement. I need to copy all the functionality of a domain hosted on a server to another domain on the same server. Only the username will only change. I also need to have a new database created for the 2nd (copied) site with a new name.
Details
Say I have a site called site1.com. There are PHP files in this and we use a database db1 with a user user1. I want to clone this to a new site called site2.com on the same server. This should have all the same program files and should have the db1 cloned to db2 with a user user2.
Is this doable?
-
There is no automated way of cloning an account in WHM. The fastest method would probably be this: - create a backup of the original account - change the username and domain name on the account, modify db name / db username as needed, update db info in your PHP settings file. - restore the backup, which will recreate the original account The downside of this method is there is going to be a bit of downtime involved 0 -
Thanks! I will use a variation of this concept. 0 -
What @xpy-xpy outlined is what I would recommend. 0 -
Thanks, @xpy-xpy and @cPRex. I using this concept for my work now. 0
Please sign in to leave a comment.
Comments
4 comments