How I moved my CMS site from one server to another
Posted: Wed Oct 03, 2007 2:53 pm
I just wanted to post this method because when I was going through it I couldn't find any sure simple answers on how to move my site from one server to another. I tried a few other ways and got some errors all over the place....I think I didn't edit my config.php file correctly.
Here is my process and it was pretty quick:
I will refer to the old site, or the existing one as Site A, and the place you are moving it to, Site B.
1. Go to your Site A database and export (use "save as file")
2. Set up your new database on Site B and import...be sure to give yourself permission for this database so CMSMS can access it (make sure all check boxes are check...I use GoDaddy, so I didn't see this option...I will address how to deal with this below if this is a case for you).
3. Use FTP to download your website, Site A
4. Download, a fresh copy of CMS Made Simple
5. Upload the CMSMS files to your new server, Site B.
6. Create a new config.php like you would in initial install and upload to Site B.
7. Upload your "uploads" folder from Site A into Site B (this will be all of your sites images).
8. Changes permissions to the folders in Site A: tmp/templates_c, tmp/cache, uploads, uploads/images, modulesĀ (777), congif (666).
9. Go to "yoursite.com/install/index.php" and run the initial install...giving direction to your new database and setting the admin user name and password.
10. On "Step 10" of the install you will need to give access to Site B's database...this is VERY IMPORTANT, make sure you UNCHECK the box that says "Create Tables" this will erase your database info.
That should be it...once you hit continue, you should be all set. Once you login to your admin area, your site should be the same as you left it in Site A.
GoDaddy Note:
I got stuck on Step 10...you have to change the "Database host address" to the address your database is located within your host...it will look something like "p33mysql77.secureserver.net".
You can find this by going to your hosting panel and to "databases" then click on the pencil to edit your database and this location will be specified there.
I think that's it.
I hope this has been helpful. I had such a hard time and some of these posts were too confusing...I know this method worked and it was simple.
Here is my process and it was pretty quick:
I will refer to the old site, or the existing one as Site A, and the place you are moving it to, Site B.
1. Go to your Site A database and export (use "save as file")
2. Set up your new database on Site B and import...be sure to give yourself permission for this database so CMSMS can access it (make sure all check boxes are check...I use GoDaddy, so I didn't see this option...I will address how to deal with this below if this is a case for you).
3. Use FTP to download your website, Site A
4. Download, a fresh copy of CMS Made Simple
5. Upload the CMSMS files to your new server, Site B.
6. Create a new config.php like you would in initial install and upload to Site B.
7. Upload your "uploads" folder from Site A into Site B (this will be all of your sites images).
8. Changes permissions to the folders in Site A: tmp/templates_c, tmp/cache, uploads, uploads/images, modulesĀ (777), congif (666).
9. Go to "yoursite.com/install/index.php" and run the initial install...giving direction to your new database and setting the admin user name and password.
10. On "Step 10" of the install you will need to give access to Site B's database...this is VERY IMPORTANT, make sure you UNCHECK the box that says "Create Tables" this will erase your database info.
That should be it...once you hit continue, you should be all set. Once you login to your admin area, your site should be the same as you left it in Site A.
GoDaddy Note:
I got stuck on Step 10...you have to change the "Database host address" to the address your database is located within your host...it will look something like "p33mysql77.secureserver.net".
You can find this by going to your hosting panel and to "databases" then click on the pencil to edit your database and this location will be specified there.
I think that's it.
I hope this has been helpful. I had such a hard time and some of these posts were too confusing...I know this method worked and it was simple.