Results 1 to 8 of 8
-
6th Jan 2012, 06:03 PM #1OPMember
How to: Migrate your website
How to: Migrate your Website
Hey, welcome to my tutorial on how to migrate your Website, you must have SHH access for this tutorial to work on your server
Lots of us had to migrate their websites in one way or another, even tho the clients usually leave this to their host, and your host might take longer than you the time you need, the process is very easy itself, which makes your website migration process faster and you need just a average knowledge of Linux
This tutorial will be covering two aspects, Migrating your website from one host to another, and migrating your Website from your Localhost to a host.
Migrating your website from one host to another
Start by taking a look around and trying to navigate to your web directory. Type:
Code:ls
Code:cd directoryname
Backing up your Website
First log in to your old server via SSH, You should have root access
Change directories to the directory where your website files are.
Type in the following code:
Code:tar -cpzf backup.tar.gz
Backing up the Database:
First off, you?ll need 3 bits of information to backup your database, but all can be found within wp-config.php (if you?re running wordpress, that is):
Database name
Database user
Database password
Then, execute this simple command, being sure to replace the username, table name, and backup filename where neccessary:
Code:mysqldump --add-drop-table -u username -p tablename > backupfilename.sql
Note: I?ve assumed that your database server is running on the same server on which you are hosting. On a GoDaddy host however, the MySQL database is actually stored remotely on a separate server to which you don?t have SSH access. In cases like these, you will need to access PHPMyAdmin via the hosting control panel, but that is out of the scope of this tutorial.
Backing Up Files:
Now that we have the database stored to single file on the server, we can go ahead and backup both that and your website files down to a single compressed backup file. To do this, we are going to execute one simple command. You need only replace yourbackupfilename with whatever you want it to be called.
Code:tar
Code:-vcf yourbackupfilename.tar .
That?s it. Once that?s run, you will have a single .tar file consisting of every file on your site. You could log in via FTP at this point and download it, but let me show one final step that allows you to restore all these files.
Restoring your Backup
Let?s say the worst has happened, and something has gone horribly wrong with your site. You?ve got a tar file of everything that you backed up last week, so now you?d like to restore it to that. First off, log in via FTP and upload the backup file onto your server. Perhaps you?ve been storing them in a special directory. Either way, move the latest complete backup file into the root of your site, and we?ll begin.
Start by unpacking all the files, the reverse of what we did to back them up:
Code:tar
Code:-vxf yourbackupfilename.tar
The last step is to suck your database back in to where it was before. Make sure you have a blank database setup with the same password and tablename as before, or you?ll need to change your site configuration settings too.
To suck the data back in, execute this command:
Code:mysql -u username -p tablename < databasebackupfilename.sql
If you have created your website and done everything via your localhost and now you just need to move it to a live host then follow the below steps:
Backup your websites files, database files too.
Backing up your MySQL Database:
Go through your local PHPMyAdmin:
Click on the database name and click the "Export" tab
Scroll down and click "Save as file", then click "Go".
Save that file somewhere safe.
See this page for screenshots and details.
Check the database in PHPMyAdmin and make sure the collation is UTF-8
Do this before you install any WordPress or anything that adds tables to the database.
(Then the tables will be created with the right collation, and Tibetan should work fine.)
Login on your cPanel
Scroll down to "Databases"
go to PHPMyAdmin and click on the new database name
click on the "Operations" tab, scroll down to "Collation"
if the menu there does not already show utf8_general_ci then
click on the menu and select utf8_general_ci
click on Go
That's all, after following these steps you should have your website moved to a new host
Raptile Reviewed by Raptile on . How to: Migrate your website How to: Migrate your Website Hey, welcome to my tutorial on how to migrate your Website, you must have SHH access for this tutorial to work on your server Lots of us had to migrate their websites in one way or another, even tho the clients usually leave this to their host, and your host might take longer than you the time you need, the process is very easy itself, which makes your website migration process faster and you need just a average knowledge of Linux This tutorial will be Rating: 5
-
6th Jan 2012, 06:07 PM #2BannedWebsite's:
xsl.tel xsltel.comwhat about mysql database ??
-
6th Jan 2012, 06:17 PM #3OPMember
I've also clarified that while you posted..
-
6th Jan 2012, 06:25 PM #4Member
If I forgot database password what can I do ?
-
6th Jan 2012, 06:26 PM #5BannedWebsite's:
HotWallpapers.me AustraliaFlood.net VirtualUpload.netThanks for share bro
-
6th Jan 2012, 06:27 PM #6OPMember
-
6th Jan 2012, 07:13 PM #7MemberWebsite's:
ihide.infoWhat about migrating from Localhost to a Live Server
that be a great part to add in.
only difference is that you have to edit your SQL file by doing a search and replace on localhost to whatever your domain name is.KWWH has turned gay. I will not return until Phamous is demoted.
-
7th Jan 2012, 05:20 PM #8OPMember
I've also explained about Migrating from Localhost to a Live Server, thanks.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How-to: Migrate Accounts From One Server To Another (cPanel)
By Bharat in forum Tutorials and GuidesReplies: 0Last Post: 6th Oct 2011, 12:50 PM -
How to migrate vbulletin 4 to new server
By babarali124 in forum Technical Help Desk SupportReplies: 2Last Post: 22nd Jul 2011, 05:42 PM -
Migrate from PHPBB3 OR SMF to vB and keep passwords?
By bxflow in forum vBulletinReplies: 2Last Post: 3rd Mar 2010, 09:43 AM -
[Shared] WHMreseller : Orig & Best! Let your Resellers resell WHM, Backup & Migrate !
By bjdea1 in forum ArchiveReplies: 0Last Post: 7th Aug 2009, 08:49 AM -
[Shared] WHMreseller : Orig & Best! Let your Resellers resell WHM, Backup & Migrate !
By bjdea1 in forum ArchiveReplies: 0Last Post: 3rd Jul 2009, 11:50 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...