Install new Concrete5 site (local) onto server where existing Concrete5 site is (live)
Permalink
Hello all.
Another newbie dumb question – I need to move a new local dev site onto the live server. I've found these instructions:
http://www.concrete5.org/documentation/installation/moving_a_site/...
However – these instruction don't include anything about setting up or moving the database, or what to do if Concrete5 and an existing database are already on the live server?
Do I just clear everything off – create a new database and export / import through phpmyadmin?
Is there a less 'brutal' approach?
Or even better – are there any full instructions anywhere?
Any help really really appreciated.
Thanks
Ian
Another newbie dumb question – I need to move a new local dev site onto the live server. I've found these instructions:
http://www.concrete5.org/documentation/installation/moving_a_site/...
However – these instruction don't include anything about setting up or moving the database, or what to do if Concrete5 and an existing database are already on the live server?
Do I just clear everything off – create a new database and export / import through phpmyadmin?
Is there a less 'brutal' approach?
Or even better – are there any full instructions anywhere?
Any help really really appreciated.
Thanks
Ian
You can either:
1 - Install in a different folder over a different database;
2 - Delete the site.php and delete/create a new database.
When you delete "site.php" the C5 website loses all connection to the database. As soon as you get those back up (For example, upload your database to the web and upload your site.php to your C5 install) you will have the new connection working.
For the database bit, I'm not a database expert, but the export/import will surely enough work fine, then you'll just have to copy your site.php over, with your packages and themes, of course.
So reviewing:
/config/site.php <== Holds the data to connect to the database.
ATTENTION: The password hash is used to decrypt the passwords. Keep the same value to keep the passwords inserted on the database working.
Themes and Packages must be send to the server.
You can create a new or just separately move your database. To make the connection work you'll just need to edit the site.php file.
Also, take care with the .htaccess and such, it'd be a shame to lose the files incase you did some hacks to deal with the mod_rewrite issues that some servers have.
Best of luck.