Moving C5 installation
Permalink
I have installed a new version of a website (built with C5) into a sub-folder called /new, and will soon need to move the installation to the root folder. What should I think about when doing this, I guess the site.php can stay the same since the database does not have to move etc.
For clients that already have a website, I think this is a good way to build the new site with the old one still running, so if the transition is smooth, I will continue doing it this way. Thanks for any feedback.
For clients that already have a website, I think this is a good way to build the new site with the old one still running, so if the transition is smooth, I will continue doing it this way. Thanks for any feedback.
I'm having an issue moving a site in this same way. What files need to be changed when doing this??
I searched the forums and found that basically you need to:
- disable cache in debug area
- clear out cached files
- change the /config/site.php file as below
define('DIR_REL', '/new');
change it to:
define('DIR_REL', '/');
- backup entire www (root) folder into a folder called /old (for example)
- move over the entire C5 installation from /new to root folder
I think that's it, I will do this myself shortly. Let me know how you go.
- disable cache in debug area
- clear out cached files
- change the /config/site.php file as below
define('DIR_REL', '/new');
change it to:
define('DIR_REL', '/');
- backup entire www (root) folder into a folder called /old (for example)
- move over the entire C5 installation from /new to root folder
I think that's it, I will do this myself shortly. Let me know how you go.
how did that go?
Yea it worked the way I described it, the site.php file is the main thing to update after you moved your files, as the site won't work if it has the wrong folder stored. Also, dont forget to clear the cache in the dashboard!