But there's one little concern that has been a headache for developers, which is moving a Wordpress site from localhost to a live domain. But this can easily be taken care of using the free backup and clone service from ManageWP.
ManageWp is a service that lets you backup and migrate wordpress websites with just a few clicks, without having you to go through any of those technical hassles which include database backups and renaming url in the database etc.
Inorder to backup and clone your “offline” site with ManageWP, we need to make it visible from the internet using port forwarding.
Step 1: Find you Local IP address
Step 2: Forward Your IP Address
Internet browsers typically try to access web servers via port 80. So when ManageWP tries to connect to a website, the attempt will typically be made via that port. As such, we need to tell the router to redirect requests via that port to your computer’s local IP address.
If you have a router then you can configure the port settings on it by pulling up the router page, but if you don't have one you will have to download UPnP PortMapper from here, you will now have a .jar file which will act as a router for our setup.
- Enter a description
- Add your local ip address under remote host
- Make sure use local host is checked
- change the WordPress Address (URL) and Site Address (URL) from localhost to your local ip address
- and make sure you click on save changes. And once the changes are saved you will be logged out of the dashboard.
Step 4: Add your website to ManageWp.
Step 6: Remove localhost website from ManageWP.
At this point we have a backup copy of the localhost website that we will be using to clone on our live domain.
First install the ManageWp worker plugin on the live domain site and activate it.
For doing that you can either use dropbox or since you now have the port forwarding on your system you can simply copy the backup file to var/www folder on your system and use your system as a host.
I am going to use the second option that is copying the backup file to var/www folder, but you can select whatever's best for you.
Now you have the backup file under var/www so the url to the file would be your ip address followed by the path to your wordpress backup file.
This is a very important step so pay attention to details in the screenshots.
- Without selecting anything in the list enter the url of the backup file under Backup URL and click on Accept.
- Note: All of the files and settings on your live domain wordpress install will be replaced by the backup file contents which include your username, uploaded files, database stuff etc.
- username(localhost site username)
- and password(new password you entered).