Sooner or later it’ll be time: you have a blog or a website on WordPress.com and would like to move it to a self-hosted version of WordPress. The customer changes roster and the WordPress installation has to move from one server to the other. Or a newly developed website lies on a local environment (localhost) and has to be uploaded onto the server.
Your WordPress site has to move!
First off, you should have a close look at your page.
If necessary: remove errors, update content, themes and plugins.
Uninstall any plugins that are not being used or that won’t be needed anymore and delete spam comments.
Empty the trash and clear out your WordPress database using a plugin (!! do not forget to back up the database beforehand !!)
To put it in a nutshell: Clean up, before saving your files and your database.
Furthermore, the new host will need the following information:
FTP access with user name and password.
Empty MySQL Database: Name of the database, database user, password for the database and host name.
Create a new folder on the server, on which you want to install your WordPress page and redirect the domain in the corresponding directory.
- Export / Import
- Backup Plugin (e.g. Duplicator, UpdraftPlus)
- Manually (move files and database manually)
In your dashboard, go to “Tools” and then “export files”.
Here you can decide whether to export everything or only certain files. Usually you should export all of your content. Click on “download export file”. WordPress will now create an XML file that you can save on your computer. You have now exported your WordPress files and can import them on the new system.
Go to “Tools” on your dashboard and select “import files”.
WordPres will suggest an array of different importers. Importers are small programs that will automatically deal with the import of all of your files. Choose the WordPress Importer. After successful installation, you can activate the plugin and start the import.
Upload the XML file that you have saved after the export. After having uploaded the file you can choose which user you want to attribute the articles and pages to. You can also decide which media (photos, sound, videos…) you would like to import into the new page. Once you have chosen all of your options, you can click “update and import file”.
The duration of the import depends on the size of the import file.
There are a few plugins that will facilitate the move of your WordPress page. My favourite one is “WordPress Duplicator”.
a) Install the plugin on your old WordPress page.
Here you can find video instructions for the installation: https://www.youtube.com/watch?v=yZ7pHmR9JC8
b) Duplicator will put all of the files of a WordPress page into an Archive-Zip file. This file contains the original WordPress file, upload files, themes, plugins and database tables. In addition, this plugin will create an installation file.
c) Upload the archive file and the installer file onto the previously created folder on the new server using FTP.
d) To unzip the archive file, you have to open the installer file in a browser on:
Duplicator will now lead you through the installation step-by-step.
c) Laden Sie die Archiv-Datei und die Installer-Datei via FTP auf den neuen Server in den zuvor angelegten Ordner. (WordPress selbst müssen Sie nicht installieren – alle WordPress Dateien befinden sich schon im Archiv!)
d) Zum Entpacken des Archivs rufen Sie einfach im Browser die Installer-Datei auf:
Duplicator leitet Sie nun Step by Step durch den Installationsvorgang.
Ein weiteres empfehlenswertes Plugin ist «Updraftplus»
Save a backup of your files and database of your WordPress installation on your computer.
a) upload the files onto the new domain
Log in via FTP and upload the backup onto the new webspace of your domain. When you have created the backup with the file manager, don’t forget to unzip the file prior to uploading it.
b) import the backup of your database to phpMyAdmin.
You might have to adapt domain name and paths before importing your database. You can use the plugins Search and Replace or WP Migrate DB to do the job for you.
c) go to wp_options
After your database has been imported, search for the table “wp_options” in the left menu. Update the site URL and home.
d) Correct the connection details of wp_config
The access data of your old domain must be substituted with the data of your new domain. DB_NAME, DB_USER, DB_PASSWORD, DB_HOST