How do I move my CMS based website to another domain on a Hetzner server?
Print Email
Email this article
Close
Email this article
CloseYou are here: Home > Website Support > Backups
In order to move your CMS based website from one hosting account/server to another, you will need to go through the process of copying the web content files, database and updating the necessary configuration of the Content Management System .
Hetzner offers all the necessary tools required to move a CMS based website from one domain to another. Below are the steps you will need to follow in order to make a copy of your website that can be uploaded onto the new account/server:
Step 1: Exporting your CMS’s database:
- Browse to konsoleH (http://myaccount.hetzner.co.za)
- Login with your Client number and Management password
- Select or search for a domain name in the Hosting Services tab
- Click Manage Services on the left-hand menu
- Select Manage MySQL under Databases
- Select the phpMyAdmin option at the top-right, this will open a separate pane
- Click on the database name to select it
- Click on Export
- Click ‘Go’ at the bottom to save the file
Step 2: Download the web content files of the CMS to your computer:
Note:
- It is recommended to compress your web content files to a single ‘zip’ or ‘tar’ file and only download a single file via FTP.
Using Windows Explorer to download your files:
- Right click on the Windows Start button
- Select Explore
- Enter the FTP address in the address bar, i.e ftp://mydomain.co.za/public_html/
- Enter your FTP username and password when prompted and click on Log on
- Once logged in, the current site content on the server will be displayed. You can then copy and paste all files in the ‘public_html’ directory to your computer.
Alternatively you can use a FTP application to download your web content: http://hetzner.co.za/ftp
Step 3: Creating the new MySQL Database on the new account/server:
- Browse to konsoleH (http://myaccount.hetzner.co.za)
- Login with your Client number and Management password
- Select or search for the new accounts domain name in the Hosting Service tab
- Click Manage Services on the left-hand menu
- Select Manage MySQL under Databases
- To add a database, click [ADD] (top middle)
- The database access information is displayed. It is recommended that you keep the default information but you can change the access details to your liking.
Step 4: Importing the CMS’s database into the new account/server:
- Browse to konsoleH (http://myaccount.hetzner.co.za)
- Login with your Client number and Management password
- Select or search for the new domain name in the Hosting Service tab
- Click Manage Services on the left-hand menu
- Select Manage MySQL under Databases
- Select the phpMyAdmin option at the top-right, this will open a separate window
- Click on the database name to select it
- Select the SQL query window from the top left hand corner within phpMyAdmin, this will open a separate window
- Select Import Files
- Click on Browse to find the dump file located on your local computer
- Click Open to select the dump file
- Then click on Go to begin the upload of the dump file to the server
Step 5: Uploading the CMS web content files from your local computer to the new domain/server:
Using Windows Explorer:
- Right click on the Windows Start button
- Select Explore
- Enter the FTP address in the address bar: ftp://mynewdomain.co.za/public_html/
- Enter your FTP username and password when prompted and click on Log on
- Once logged in you can copy and paste the previously downloaded files from your computer into the public_html folder.
As you have created a new database for your CMS and imported the database content, you will need to update your CMS configuration file on the new domain/server to match the database server and login details of the newly created database, setup in Step 3.
Note:
- Some Content Management systems require additional changes made in the database, such as the “Site Name” or “upload_path” in order to work correctly.
- Installation guides, FAQs and Forums are usually made available by the software providers of the CMS and are the best resources to use in order to change this.
Was this information helpful?
Yes NoThank you for your feedback
We are delighted to find that our article resolved your query.
Thank you for your feedback
We will resolve your query as soon as possible.
Please take a few moments to comment on your unresolved query. Simply tell us what your problem is. We guarantee that we'll get back to you within two hours (during office hours) in response to your query.
