How to switch hosting?

Permalink
Hi,

If I have a c5 website running, and would like to switch hosting providers, what exactly do I need to do? I understand, of course, that I need to move the whole file structure to the new host server, but apart from that...?

Details appreciated.

Thanks very much, in advance!

Andrey

 
ntgross replied on at Permalink Reply
ntgross
Export the database and import it into the new server. You will probably need to adjust the database connection settings in the config/site.php file. From there, it depends on the host.

Also check out Concrete5 documentation:
http://www.concrete5.org/documentation/installation/moving_a_site/...
invision replied on at Permalink Reply
invision
Andrey,

I've moved several C5 sites successfully. Two things to move: the files and the database.

If your host has phpMyAdmin, login to that for your account, select the c5 database. At the top of the screen you'll see an Export tab. Be sure that all tables are selected, SQL for file type, and check 'Save as file', then 'GO'. You'll be prompted to save the file. It should export fairy quickly.

On the new site, open up phpMyAdmin to your database (create a new blank one if you haven't already), select the database for c5, click the import tab, the browse button, find the .sql file you just exported, and GO.

For the files, you'll need either an FTP client, or better yet, if your host is running cPanel, you can run the File Manager, navigate to the root directory for your c5 install, select all the files (there's a "select all" button near the top), then compress (also button near the top) all the files into a single archive file. You'll be prompted to select a file type when you choose compress, any is fine (I used zip).

When it's done compressing, close the dialog, select the file, and download to your local drive. If you have cPanel on the new host, login, navigate to the root directory where you plan to run c5, upload the zip file, and uncompress.

The only file you should have to adjust is the 'config/site.php' -- just enter the settings for the new database and domain/site path.

I do this frequently to sync a local version of a project with a live version. I try to code & experiment on local versions of a site, vs a live site.

Hope this helps. Let me know if you need clarification.

If neither of your hosts offer phpMyAdmin or cPanel w/file manager, I'd move on to another hosting company.

Sherm Stevens
http://www.invision-studios.com