🚀 Moving a WordPress site from your computer to a live server is easier if you follow these steps:
🗄️ 1. Backup Your Website
Before doing anything, create a full backup (database + files).
👉 Recommended Tool: UpdraftPlus
🖥️ 2. Export Your Local Database
- Open phpMyAdmin on your local server.
- Select your WordPress database → Export → Quick → SQL.
👉 Guide: Exporting Databases with phpMyAdmin
📂 3. Upload WordPress Files to Live Host
- Use FTP client like FileZilla or your host’s File Manager.
- Upload everything from your local WordPress folder to your hosting account’s public_html (or root directory).
🛢️ 4. Create a Database on Live Host
- Log into your cPanel (or hosting dashboard).
- Go to MySQL Databases → create new DB & user.
👉 Tutorial: How to Create a MySQL Database in cPanel
🔄 5. Import Your Local Database
- Open phpMyAdmin on your live host.
- Select the new database → Import → upload the exported .sql file.
⚙️ 6. Update wp-config.php
Edit the file in your root directory:
define( ‘DB_NAME’, ‘your_live_db_name’ );
define( ‘DB_USER’, ‘your_live_db_user’ );
define( ‘DB_PASSWORD’, ‘your_live_db_password’ );
define( ‘DB_HOST’, ‘localhost’ );
👉 Guide: Editing wp-config.php
🌐 7. Fix URLs in Database
- Go to wp_options table → update siteurl and home with your live URL.
- Or install Better Search Replace to update all links.
🔗 8. Reset Permalinks
- Log into WordPress dashboard.
- Go to Settings → Permalinks → Save Changes (refreshes links).
✅ 9. Test Your Live Site
- Visit your domain and check if pages, images, and plugins work.
- Troubleshoot with WordPress Support.
🌍 10. Update DNS (if needed)
Point your domain to your host’s nameservers.
👉 Guide: How to Change DNS Records
🔒 11. Secure Your Site
- Install SSL certificate for HTTPS (many hosts provide free Let’s Encrypt).
- Add a security plugin like Wordfence.
✅ Done! Your WordPress site is now live 🎉
Once you have completed these steps, your WordPress site should be successfully transferred from local to live. Make sure to thoroughly test all functionalities on your live site. Remember to regularly backup your website to prevent data loss. Consider implementing security measures such as SSL certificates and security plugins. Keep all themes, plugins, and WordPress core files updated to ensure optimal performance and security.
