Renaming c5 Directory / Moving to New Server
Permalink
Hi,
I have been experimenting/working on my first c5 site for a local artist on my server. I now want to show them my progress, but before I do is it possible to rename the folder that I uploaded c5 into, for the sake of tidiness. To elaborate I initially uploaded everything into myserver.com/concrete/ ... so yes that also means I also have myserver.com/concrete/concrete/ which an be a bit of a headache...! It seems that simply renaming the main 'concrete' dir on the server resulted in problems, is there a possible way of renaming the main folder successfully?
When the site is complete on my server I want to transfer it to the artist's own server. Is this difficult to do? Worst case scenario I have my theme/css files and I would have to reupload everything on the other server and then recreate all of the pages, but if this can be avoided that would be superb.
Thanks in advance. Happy new year everyone!
Chris
I have been experimenting/working on my first c5 site for a local artist on my server. I now want to show them my progress, but before I do is it possible to rename the folder that I uploaded c5 into, for the sake of tidiness. To elaborate I initially uploaded everything into myserver.com/concrete/ ... so yes that also means I also have myserver.com/concrete/concrete/ which an be a bit of a headache...! It seems that simply renaming the main 'concrete' dir on the server resulted in problems, is there a possible way of renaming the main folder successfully?
When the site is complete on my server I want to transfer it to the artist's own server. Is this difficult to do? Worst case scenario I have my theme/css files and I would have to reupload everything on the other server and then recreate all of the pages, but if this can be avoided that would be superb.
Thanks in advance. Happy new year everyone!
Chris
wow kate, it's posible after all!
but this for the first install isn't?
how if we already install it?
but this for the first install isn't?
how if we already install it?
fastcrash - no, this is about how to move C5 to another folder, and yes, it's possible. See response to OP.
Cute bio by the way - ha!
Cute bio by the way - ha!
Thank you for your reply Kate, following your advice the home page loads 100% fine at the renamed base URL but any other page in the navigation results in a server error. I can't access /login/. Any ideas? I have reverted to my previous directory name for now with no problems (I'm using version 5.4.2.2 by the way).
Hi crstf,
What I told you was correct, but it seems there are some steps I failed to mention. Here is a link to C5's how-to on moving a C5 site, with the complete details:
http://www.concrete5.org/documentation/installation/moving_a_site...
Kate
What I told you was correct, but it seems there are some steps I failed to mention. Here is a link to C5's how-to on moving a C5 site, with the complete details:
http://www.concrete5.org/documentation/installation/moving_a_site...
Kate
Hi Kate, thanks for the link. I followed the guide and everything was going well - until I visited /login/ where I get a 500 Internal Server Error :( what you shared does work as a temp fix for the time being, though, here's hoping when I go to move the CMS from one server to another (also using the guide you posted, so thanks) everything falls into place...! The one step I didn't take from that guide was to recreate the sitemap, as I didn't need to read that far down (it said "if you're done here, that's it, yippee!" or something)... I now wonder if that was the last step I needed to take?
Kate -
When I use those values as in
define('BASE_URL', 'http://www.my_url.com');
define('DIR_REL', '/my_directory');
all works fine except the images cannot be found because the sub-directory is not in the path as in
http://www.my_url.com/files/9713/6605/7737/the-rotary-club-of-bend....
Do you know where that url is set or what variable is used?
Todd
When I use those values as in
define('BASE_URL', 'http://www.my_url.com');
define('DIR_REL', '/my_directory');
all works fine except the images cannot be found because the sub-directory is not in the path as in
http://www.my_url.com/files/9713/6605/7737/the-rotary-club-of-bend....
Do you know where that url is set or what variable is used?
Todd
If you move where you have the files located, or rename the directory they are in, you will need to modify the ../config/site.php file to reflect the change. It should contain these two lines:
This is true of installations prior to 5.5, but I'm not sure about 5.5.