Migration of website from local host to live server
WordPress is web software, previously it was used only for
blog development but now it has extended its features and is one of the
competitors in the market of web based technology.
Making a website by installing WordPress in local machine is
not always the motive of developers; a live website is always a dream for many
because it becomes difficult to successfully migrate a website from local
server to hosting provider live server.
Here is a method described by me for migration of a website
from local host to live server.
Often it depends on the type of features available at the
hosting server and then accordingly the website needs to be configured before
migration, but I will be explaining a process which is simple and make your
work done but before that always remember “it is good to take a long simple way
with cent percent chance of reaching your destination than to take a complex
shortcut route with possibilities of failure”
First Process of website migration:
1) First of all go to the folder
where you created your website in your local machine, then simply put it on
desktop.
2) go to control panel of your
hosting provider and create a folder with the same name as in your desktop and
also create the subfolders accordingly.
3) Then browse and upload the files,
in their respective folders.
4) Now go to database section in your
control panel and create a new database with the same name as in your local
database.
5) Now write queries to create table
under that database in the live server and also to insert data (it is always a
good practise to insert only some relevant data in your local site for testing
purpose and to upload other data at the live server)
6) Now in case you had your local site name as test or
something like that then you may want to change it, in that case browse through
folders in live server c panel and search for site url file and change the name
there.
Go to the address bar check your website, it is live.
Second and the most complex method are to migrate via a file
transfer protocol service provider like FileZilla.
You can easily get FileZilla or other similar software in
internet by asking uncle google.
Second Process:
1) Go to your local sql server and
click on database you need to migrate and click on export button, this will
create a zip of your database.
2) Next run FileZilla and enter the credentials like your
website url, your username and password , choose the files you need to transfer
and click on upload
3) Now go to database section in your
control panel in the live server and click on the options for importing your
local database and upload it.
4) Go to site URL file by browsing
among all the files in your live server and change the url to your site url in
case it is something test, etc.
5) Check your website it will be live.
Though second method is used by most of the
user as it is easy and quick, but I will recommend for the beginners to use the
first method because it is easier one and will leave no chance of error, once
you become experienced in managing c panel then you can try the second method.
For any more details your comments are invited....