Move a concrete 5 site from test domain to live domain

Permalink 2 users found helpful
I need to move my Concrete 5 site from a test domain to a live domain. I have read the tutorial about how to do a database backup from the Dashboard. My two concerns with that are it says it only backups the text, structure and settings of your website are saved and not the files. Also, I have run into issues with previous CMS systems, where changing domains broke everything due to the file paths becoming wrong.

How can I move my entire Concrete 5 site from one domain to another?

 
globalnerds replied on at Permalink Reply
globalnerds
Here is what to do:

back up your db and your file system (you will need to move the files to the new file system on the new domain anyway). Turn off pretty urls.

Move the website (files and db). If your db is within the same phpadmin and you want to leave the other db in tact, create a new db and import the file that you exported in the previous step.

Once the website (files and db) have been moved. Edit site_theme_paths.php (in your root directory). Change the following:

db_username - if you created a new one.
db_password
db_database

Assuming the the new domain is on the same hosting provider, you should not have to change db_server

Once the site has moved successfully go into your dashboard - keep in mind you dashboard link will be differentwww.www.newdomain.com/index.php/dashboard....

Turn pretty urls back on - you will now be able to go to the dashboard viawww.www.newdomain.com/dashboard...

This should do it. Any questions, feel free to PM me.
10317976 replied on at Permalink Reply
Definitely the easiest method! Thanks!
Scafidi454 replied on at Permalink Reply
Scafidi454
Hi,

I'm having trouble doing this migration. The domains are on the same server, but after installing a fresh copy of concrete5 on the new domain (root) and then trying to transfer/overwrite the existing files with the ones from the previous/test domain, I get many errors.

Changing the .htaccess didn't work.

I couldn't find the supposed site.php in the /config folder, nor the site_them_paths.php in the root.

Where are all of the domains referenced in the concrete installation?

Which folders can be straight copied without the need to re-configure?

Do I need to copy the DB over if I would essentially be using the same one (e.g. decommissioning the "test" or old domain)?

I've got another post on this, but haven't received any responses.

I'm considering going over to Drupal; at least, testing with it since I have 3 domains on this server.

Thanks,
Tyler
dplunk25 replied on at Permalink Reply
Thanks! I'll give this a try this afternoon and let you how it goes.
foster replied on at Permalink Best Answer Reply
foster
I posted a version of this on another thread a while ago, but thought I'd share. It's a little bit different than the other posts here, so I wanted to add it. I always like to start with a fresh install of C5 when I'm moving a site, and this is what I do...
This assumes you are not upgrading the site when you are moving it, just going from the same version to the same version.

If you need to move and upgrade, read this:
http://www.concrete5.org/community/forums/installation/5.5.2.1-to-5...

Also,http://www.concrete5.org/marketplace/addons/backup-voodoo/...
was released not too long ago and could be helpful/streamline the process.


What I do:
In your functioning site that you want to move:
turn off pretty urls
clear the cache
run a backup
download the backup

Create a fresh install of C5 at the new location

Go to the old c5 folder by ftp or locally on your hard drive
copy everything in the folders:
blocks
packages
themes
and all folders named with numbers in the "files" folder (like 1913). I think they all end in 13
to
the corresponding folders in your fresh install
You would need to copy the contents of some other folders if you've created override files in there, but this is less common (sometimes I have something in "elements" or "single_pages" for example)

in your new install, upload the backup from the old site into the files/backups folder

in the new site, go to the dashboard in C5 and restore from backup
when the restore is finished, you will see a blank white page (don't panic)
if all goes well the site will be good to go then, just go to your homepage.
Remember to turn on pretty urls...
bhegnauer replied on at Permalink Reply
Unfortunately your guide did not worked with me. I got these errors after clicking run restore:

Warning: chmod() [function.chmod]: Operation not permitted in /home/httpd/vhosts/domain.ch/subdomains/test/httpdocs/concrete/core/controllers/single_pages/dashboard/system/backup_restore/backup.php on line 95

Warning: chmod() [function.chmod]: Operation not permitted in /home/httpd/vhosts/domain.ch/subdomains/test/httpdocs/concrete/core/controllers/single_pages/dashboard/system/backup_restore/backup.php on line 122

Thanks anyway for posting
globalnerds replied on at Permalink Reply
globalnerds
If you have not tried my version I suggest you do. You do not have to restore anything other than moving the files and copying the db.
bhegnauer replied on at Permalink Reply
@globalnerds: Thank you very much for replying. Next time I will try your solution ... Soon I have to move again a site from development to production.
bhegnauer replied on at Permalink Reply
Hi, okay, it took a little longer than expected... Today I moved a website with your process! Worked wonderful. Thanks for encouraging me to try your approach.