How To Migrate Website From Localhost To Hosting Quickly With Plugin .

12:48 Bharat modi 0 Comments

Before We Move On to The Steps Please Go through

This Awesome Video Tutorial of  James Hunt for Duplicator Plugin.


1. Download and Install the Plugin

Duplicator can be installed directly from the WordPress dashboard. Under the Plugins option of your dashboard, click the “Add New” button and then search for “duplicator”. The plugin you’re looking for should be the first result but double check that it’s authored by LifeInTheGrid. Go ahead and click “Install Now”:
duplicator1

2. Activate the Plugin and Create a Site Package

After activating the plugin, you’ll get a new navigation option in your main WordPress dashboard menu: “Duplicator”. Select this and you’ll enter the main setup screen with a warning message that you haven’t created any packages yet:
dupliator2
Click the “Create New” tab. This will take you to the package creation wizard.
Before the package can be created, there are several requirements that need to be fulfilled. Hopefully you’ll have a “pass” in this, but if not, you can expand the box to find out where the problem is:
duplicator5
If any of the requirements fail, you can click the link for further information about how to solve the issue. Some common problems you may be able to fix by yourself but in other cases, you may have to contact your hosting provider to make changes for you.
When I first installed the plugin, it failed at the “Zip Archive Enabled” step. In my case, I needed to upgrade the PHP version of my domain in order to activate the zip extension so try this from your hosting dashboard if you are getting an error.
The name will be pre-filled (you can change this if you wish), you have the option to create some notes about the package and there are further options under Archive and Installer.
Under the Archive section, there is a dropdown box to change the file format (only .zip is available in the current version). You don’t need to enable the file or database filters unless you wish to exclude something from your site backup.
duplicator6
The installer section is for entering details about the server you will be moving your WordPress site to. You can fill these out now or you can leave it until the installation step. I prefer to leave these fields blank to have a clean backup package that can be installed anywhere (although it is possible to change the details later so this is no real problem if you fill them out).
duplicator7
Finally you have an option of skipping the system scan and going directly to the package build, however I would leave this unchecked so that you’re aware of any potential problems.
After clicking the Next button, the plugin will perform a scan of the server, files and database to detect any possible issues. It’s not mandatory for all the checks to pass to build the package, but it’s good to be aware of them as they can cause problems in some cases.
duplicator8
Again, if you do have any warnings on this page, click the relevant link for more information. If you have a very large site or large files such as video files this might throw up a warning as they can cause timeouts. If this is the case, you might want to go back and use the filter option to exclude such files from the package. It’s also a good idea to clean up the database of very large sites before you export the package. Don’t be too worried about getting warnings as they often won’t cause any problems but the information on this page may help you sort out issues if you get an error during package creation.
After clicking build, the software will go ahead and back up your whole site including all plugins themes, pages, posts and media to a single file. After the build has finished, you’ll be presented with download buttons for an installer (a PHP file) and the archive you just created as a zip file, so go ahead and download these files:
duplicator9
The package will now be listed back on the packages tab with date and size information, which is useful for backup purposes. The package files are stored in a new wp-snapshots directory that you’ll find in your main website directory.
If you just want to backup your site, your job is done! For extra security, make a copy on an external hard drive or upload it to cloud storage.
If you’d like to move your site to another server, read on for the next step.

3. Prepare New Server for Installation

The next step is to connect to the new server you want to move your site to via FTP and upload the installer.php and your archive zip file to the directory you want to install the site in. You don’t need to install WordPress on the new server.
The one thing that the plugin doesn’t handle for you is setting up a new database for your site on the new server, so you’ll need to do this manually. The process for doing this will depend on your webhost, so refer to their documentation for a guide. If your hosting provider uses cPanel, follow these instructions for setting up your database.
Make sure to make a note of your database host (if on a different server to your website files – localhost works for many hosts), username, password and database name as you’ll need them in the next step

4. Run the Site Installer

Access the installer script in your web browser from wherever you copied it to. For example http://www.mysite.com/newsite/installer.php
You should see a screen like the one below. Fill out the fields with the information for the database you just set up:
duplicator10
You can then press the “Test Connection” button to check that the script can connect to the database ok. With any luck you’ll get a pop up box telling you that the server is found and the script managed to connect to the database. If you get a fail for either of these, follow the advice under “common connection issues” or contact your hosting provider for help.
duplicator11
Before proceeding you then need to tick the box to say you’ve read all the warnings and notices, and then click“Run Deployment”. You’ll get a warning reminding you that any data existing in the database will be overwritten (so double-check you’ve entered the name of your new database and not an existing one!) which you can click OK to.
Hopefully you’ll then see the system starting to deploy the files. If you get an error, try re-uploading your archive file in case it became corrupt during the file transfer.
After installation, you’ll be presented with a page showing you the old and new Path and URL settings for your site. You have the opportunity to change your page title here and create a new admin user if you wish.
duplicator12
If you have problems with certain plugins when you’re copying your site across, you can disable them from the advanced options section. You can then hit the “Run Update” button to update the database and finish off the site install.
The final screen displays a report of the installation with any errors and warnings and some steps you should complete before using your new site.
duplicator13
Clicking on the Save Permalinks will take you straight to the WordPress dashboard of your new site. You may have to login (using your original admin username and password or the new one your set up in the previous screen).
Select the permalinks structure that you wish to use and save the setting.
duplicator14
You’ll also get a warning at the top of the screen that the install files are still located within the WordPress directory and this could pose a security risk. You can delete the files directly using the link on this page.
duplicator15
If you get an error message that a file wasn’t removed successfully, you can just delete it manually using your FTP program.
You can then go ahead and check your site from the front end to see if everything works properly. Sometimes a plugin or two may need reinstalling but otherwise, you should have an exact copy of your original site.
duplicator16
Congratulations! You’ve successfully moved your site to a new server – get yourself a coffee, you’ve earned it!



     Thank you For Reading .
If you like It please share the word.

0 comments:

Popular Posts