For this guide we're going to demystify WordPress a little bit and show you how easy it is to move a WordPress installation from your current host to Cirtex Hosting. You'll gain an understanding of the basic components of WordPress and see how moving the site is nothing more than a series of simple steps. Let's dig in!
Note: if your current host is a cPanel host, the easiest thing to do is to allow one of our talented Tech Support Ninja's take care of it for you. Just open a ticket and they'll get it moved over for you.
WordPress is really nothing more than a collection of properly placed files supported by a MySQL database. All we're going to do is move the files and the database and then tell WordPress where to find the database. For the guide, we're going to use a fictitious site with a domain name of 'yourdomain.tld', where 'yourdomain' is the beginning part of your site's URL and '.tld' is your '.com' or similar.
Note: the below instructions detail how to manually move your WordPress website over. If you would like to use the Softaculous plugin (Softaculous comes standard on all shared plans) to move it over, scroll down to the bottom to see those instructions.
To back up the site, we're going to use a WordPress plugin called 'WP-DB-Backup' to get a copy of the database, and then use an FTP program to copy the site to your computer. To start backing up your site:
- Log in to your WordPress site at your current host at yourdomain.tld/wp-admin
- Navigate to Plugins menu on the left-hand side of the screen and then Add New
- Search for 'WP-DB-Backup'; the top result should be the correct one
- Click Install Now, click OK, and then click Activate Plugin
- In the Main menu, click Tools and then click Backup
- In the Backup Options setting click Save to Server and then click Backup Now! to start the backup process
- Make note of the directory in which the database backup is stored. In our case it is 'wp-content/backup-220fb/'.
We'll need to know the directory path where the backup is stored when we go to restore the database.
FTPing the Files
Now we need to use FTP to download all of the files, including the database backup which is now stored in a file. A good FTP program to use is Filezilla, which you can download at https://filezilla-project.org.
Note: to learn more about how to FTP, where to get to your FTP, and more check out our Knowledgebase article here.
To get started FTPin':
- Log into FTP on your account at your old web host
- Navigate to the directory that contains all of your site files
Note: when you see 'wp-config.php', you've hit the right directory.
- Make sure you grab all of WordPress' files including the .htaccess file
Note: .htaccess is often hidden (because it starts with a dot) and so you may have to unhide it first. In FileZilla, click Server and then Force Showing Hidden Files. Put them all into an empty directory on your computer.
Uploading to Your New cPanel Account
We're getting there! It's time to configure your FTP program for your new cPanel account and get logged in.
Note: if you run into a snag on this step, please open a ticket and we'll be glad to get you logged in.
- Open your welcome email and grab your username and the IP of the server your account resides on
- Use the IP from the welcome email as the hostname for the FTP, and your cPanel username and password as the login info
- Upload the entire contents of your WordPress site into the public_html directory via FTP (make sure that all files were uploaded including .htaccess)
Creating and Importing the Database
We've got the WordPress files moved. Next we need to create a new database in cPanel and import your WordPress database.
- Log in to cPanel (using the login details from your welcome email)
Note: for this guide we're assuming a username of “youruser”. Be sure to use your actual username.
- In the Databases section click MySQL® Database Wizard
- In the New Database text field type 'wordpress'
Note: your database name is youruser_wordpress. This is the 'DB_NAME' that you'll need later.
- Click Next Step
- In the Create Database Users text field type 'wpuser' and then type in a password for your database (make one up)
- Write down the password that you used and 'youruser_wpuser'; you will need these later for DB_USER and DB_PASSWORD
- Click Create User
- On the next screen tick the box adjacent to ALL PRIVILEGES and then click Next Step
The database is ready, but it's empty. We need to import the database that we backed up. For this, we're going to use phpMyAdmin, which is built into cPanel.
- Click the Home icon in the top left corner of the cPanel screen
- Scroll down to Databases again and click phpMyAdmin
- When the phpMyAdmin screen pops up click on your database in the left column where it says 'youruser_wordpress'
- Click Import, located near the top of the page, and then click Browse
- Navigate to the same folder that you downloaded your WordPress files into earlier, into 'wp-content' and then click on the Backup folder
- Double-click on the file name 'yourwpdatabase_' and then click Go, near the bottom of the page
If it succeeded, great! Let's move to the next step. We're almost done. If not, go ahead and open a ticket with our Tech Support Ninja's and they'll ha-cha! the database into place for you.
Hooking It All Up Together
The last step is to tell your WordPress installation about the new database details. For that we're going to use cPanel's own File Manager.
- Go back to cPanel's main page and click File Manager
- Web Root should already be selected (select it if it's not), so click Go
- Right click on 'wp-config.php'
- Click Edit, then Edit again
- Edit just the MySQL settings so that it matches the values that we wrote down when creating the MySQL database earlier
- Click Save Changes and then Close in the top right corner
/** The name of the database for WordPress */
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
You can also close the File Manager and any other cPanel windows. We're done! That's it. Your site is ready to go. Once you point your DNS at your account at Cirtex Hosting, your site will be live. If you need a hand making any of this work, do not hesitate to contact our Tech Support Ninja's. We want to make sure that your move is a smooth one.
Moving it Over with Softaculous
You can easily move your Wordpress blog over to us with Softaculous from within your cPanel dashboard.
Note: this move focuses on migrating your blog posts. It imports your posts, pages and comments. It retains your tags, categories and the links for embedded media but does NOT migrate media files.
If you have uploaded images or video on your Wordpress blog copy those files to your uploads folder located at /wp-content/uploads. This way those images show up on your newly imported site. You can also migrate your themes folder, wp-content/themes, using the same process.
Moving Your Wordpress Installation
- Log in to your Wordpress dashboard and navigate to the Tools menu, then click Export
- Click All Content and then Download Export File and save it to your computer (noting the location)
- Log out of your Wordpress dashboard
- Log in to your cPanel account (login info was sent in your welcome email and you can find more info about getting into cPanel here)
- From your cPanel dashboard, in the Software and Services section, hover over Wordpress and click Install
- To the right of Choose Domain, select the domain you want to move from the dropdown menu
- Remove the 'wp' from the In Directory section if you want your site to be found at http://yourdomain.com instead of http://yourdomain.com/wp
- Finish filling out the applicable text fields and complete the installation by clicking the Install button at the bottom of the page
- Log in to your Wordpress dashboard again
- In your Wordpress dashboard navigate to the Tools menu and click Import
- Select Wordpress from the available options
Note: you will likely need to install the Wordpress Importer Plugin to complete this.
- Choose the file you downloaded earlier and click Upload File and Import
- Select the author to assign posts to (or assign posts to an existing user)
Note: you can change this at any point in the future by editing the posts.
You can also select Download and Import File Attachments to connect to your existing site and download images or videos etc. This usually only works if your site is being imported from a WordPress.com/Blogger/LiveJournal site and not another WordPress.org installation.
See also Accessing Your cPanel Account, Login URLs You Need to Know, FTP Tutorials, Setting Up cPanel MySQL Database and User