How to move wordpress site to new host
Moving a WordPress site to a new host can be a bit of a process, but it's definitely doable. Here's a step-by-step guide to help you through the process:
Before you start:
- Backup your site: Make sure to backup your WordPress site, including the database and files, before making any changes. You can use plugins like UpdraftPlus or Duplicator to create a backup.
- Check your hosting plan: Verify that your new host meets the requirements for your WordPress site, including PHP version, MySQL version, and storage space.
- Update your DNS: Update your domain name system (DNS) settings to point to your new host. This may take some time to propagate, so be patient.
Step 1: Export your database
- Log in to your current hosting control panel (cPanel) and navigate to the phpMyAdmin tool.
- Select your database from the list of databases.
- Click on the "Export" tab.
- Choose the "Quick" method and select "SQL" as the format.
- Click "Go" to download the database backup.
Step 2: Export your files
- Use an FTP client (like FileZilla) or SFTP client (like Cyberduck) to connect to your current hosting account.
- Navigate to the root directory of your WordPress site.
- Download all the files and folders to your local computer.
Step 3: Create a new database on your new host
- Log in to your new hosting control panel (cPanel) and navigate to the phpMyAdmin tool.
- Create a new database and take note of the database name, username, and password.
Step 4: Import your database
- Log in to your new hosting control panel (cPanel) and navigate to the phpMyAdmin tool.
- Select the new database you created.
- Click on the "Import" tab.
- Choose the database backup file you downloaded earlier.
- Click "Go" to import the database.
Step 5: Upload your files
- Use an FTP client (like FileZilla) or SFTP client (like Cyberduck) to connect to your new hosting account.
- Navigate to the root directory of your WordPress site.
- Upload all the files and folders you downloaded earlier.
Step 6: Update your wp-config.php file
- Open the wp-config.php file in a text editor.
- Update the database settings to match your new host's database settings.
Step 7: Update your site's URL
- Log in to your WordPress dashboard.
- Go to Settings > General.
- Update the "WordPress Address" and "Site Address" fields to match your new host's URL.
Step 8: Update your plugins and themes
- Log in to your WordPress dashboard.
- Go to Plugins > Installed Plugins.
- Update any plugins that require updates.
- Go to Appearance > Themes.
- Update any themes that require updates.
Step 9: Test your site
- Visit your site to ensure it's working correctly.
- Test all pages, posts, and functionality to ensure everything is working as expected.
That's it! With these steps, you should be able to move your WordPress site to a new host. Remember to update your DNS settings and be patient while the changes propagate.