![]() DesktopServerĭesktopServer is a desktop application that’s available for macOS and Windows that allows you to run WordPress locally on your computer. On top of that, its premium version comes with a migration tool that makes it easy to migrate your site. It supports incremental backups, and the ability to restore directly from the site admin menu. You can automatically create a backup and store it on a remote server (Google Drive, FTP, Dropbox, and others). UpdraftPlus is an advanced WordPress site backup plugin. If you do not want to get your hands dirty in to manually downloading and uploading files and databases, you can consider the option of migrating with WordPress plugins. Now, launch a new browser and type in your URL, your WordPress website should appear like how it is on your localhost. Make sure “WordPress Address (URL)” and “Site Address (URL)” are correct, then click Save Changes. On the live site, go to WordPress Dashboard, then navigate to Settings > General. ![]() If all goes well, your site should have been successfully migrated from your localhost to the live server. Replace 'your_database_name', 'your_database_user', and 'your_database_password' with the correct information from our previous “Create a new database” step. Open wp-config.php with your favorite text/code editor, and look for this section in the file.ĭefine('DB_PASSWORD', 'your_database_password') Last but not least, we will also need to edit wp-config.php on the live server, so it can read from the database. Note: Make sure the directory on your live server is correct You should usually be transferring files and folders into public_html/. Connect to your web hosting account via FileZilla, and start transferring all the WordPress-related files and folders. If you don’t have one, you can download it from FileZilla. To do this, I would recommend using an FTP client. Now, let’s send the physical WordPress files up to our web hosting account. Transferring physical files to live serverĪt this stage, the migration of the database is basically done. You will need to change the siteurl and home from to. When you’ve just developed the site, the siteurl and home entry will be set to Assume you have a domain,, and that you’ve set the DNS to point to the live server. To do so we’ll need to navigate to the wp_options table on the database and find the siteurl and home entry within the table. gzip format), then click Go.Įdit settings in your Database (live server)Īfter the database is uploaded, we will need to update the site URL. Click Browse, select your localhost’s database (in.On the left sidebar, click on the name of the database you’ve created earlier, then click Import on the top menu.In the admin section of your web hosting account, navigate to the Database section, and click “PhpMyAdmin”.It’s now time to import the database to the live server. So we’ve exported the localhost’s database and created a new database on the live server. Upload database to live server (live server) Note: Keep a copy of the credentials (username and password), we will need it later. If you are prompt or redirected to a page confirming the user’s privileges, just ensure all boxes are checked and click “Make Changes”, or “Done”.Select the User, and the Database name, then click Add. Then we will need to link both the database and the user.Enter a username, a password (twice), and click “Create User”. After the database is created, we will need to create a user for this database.Give your database a name, then click “Create Database”.Then click on a link or button that says “Create New Database”. Under the cPanel or the admin page, look for a button or link that says “MySQL”, “MySQL Database”, “Database”, etc. gzip format) under Format, and then click Go.īefore we can upload our localhost WordPress database to the live server, we must first create a database in our web hosting account. On the left sidebar, click the name of your WordPress database.Following the following instructions to get a copy of your database: ![]() Make a copy of the existing database (localhost)įirst, let’s download a copy of your existing WordPress database. ![]() ![]() Note: We are using MAMP on localhost, and hosting with Hostgator (with cPanel) on the live server. In this method, we will be migrating both the physical WordPress files and the database file manually from localhost to the server. How to Install WordPress Locally With Vagrantĭeveloping locally is one of the best things that can happen to you. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |