AlphaOne Technology Support Forums
Welcome, Guest. Please login or register.
January 07, 2009, 11:34:47 AM

Login with username, password and session length
Search:     Advanced search
1733 Posts in 827 Topics by 5327 Members
Latest Member: koliangoodsb
* Home Help Search Login Register
AlphaOne Technology Support Forums  |  SUPPORT CENTER  |  How Do I Questions  |  Topic: How Do I Move My Php/mysql Based Website 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How Do I Move My Php/mysql Based Website  (Read 1338 times)
AlphaWolf
AOT Administrator
Administrator
Hero Member
*****
Offline Offline

Posts: I am a geek!!



View Profile WWW
How Do I Move My Php/mysql Based Website
« on: October 14, 2004, 09:26:45 PM »

This is particularly relevant for folks who use any MySQL applications on their site.

Firs of all, CPanel does NOT correctly do a "home directory" backup.  It lies.  It really does a full backup - which will NOT restore correctly onto another account or server.  The files in your public_html directory have to be moved via FTP.  E-mail accounts, etc. will not move successfully from one account to another.

But here is the process:

1) Using your FTP program, log in to your original account/server & download everything under your public_html directory to your local pc except for: cgi-bin directory.
2) Log in to your new account/server and FTP everything back up under your public_html directory.
3) Log in to CPanel on your original account/server and go to Backups
4) Backup each MySQL database to your local PC
5) Go into the CPanel main page and select the MySQL icon
6) write down the names of each database, forget about anything before the _ as that is account name specific.
7) write down the names of the user assigned to each database, again, ignoring anything before the _
Cool Go to CPanel on your new account/server and restore the databases you backed up.
9) Go into mysql in CPanel and create a new user and assign it to the database.

Unless both the old and new account/server have the SAME user name (the information before the _ in MySQL, you will have to edit your config.php for any application that accesses a MySQL database to account for the new prefix.

After you have done all that, you should be ready to test your programs.  If you get any error messages, the most likely problem is that you will need to go in and CHMOD (change permissions) for the directories that are listed in the error messsages.  The directory permissions that are important are most likely listed in any read me or install files for the particular program.
Logged

AlphaOne Tech Webmaster Resources
http://www.alphaone-tech.com/resources/
AlphaWolf
AOT Administrator
Administrator
Hero Member
*****
Offline Offline

Posts: I am a geek!!



View Profile WWW
Re: How Do I Move My Php/mysql Based Website
« Reply #1 on: December 14, 2004, 01:21:29 PM »

Please read this carefully if you are moving your site to our servers.
Logged

AlphaOne Tech Webmaster Resources
http://www.alphaone-tech.com/resources/
AlphaWolf
AOT Administrator
Administrator
Hero Member
*****
Offline Offline

Posts: I am a geek!!



View Profile WWW
Re: How Do I Move My Php/mysql Based Website
« Reply #2 on: July 25, 2005, 07:45:47 PM »

bump
Logged

AlphaOne Tech Webmaster Resources
http://www.alphaone-tech.com/resources/
Pages: [1] Go Up Print 
AlphaOne Technology Support Forums  |  SUPPORT CENTER  |  How Do I Questions  |  Topic: How Do I Move My Php/mysql Based Website « previous next »
Jump to:  

Powered by MySQL Powered by PHP AlphaOne Technology Support Forums | Powered by SMF 1.0.7.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!