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

 
s2d replied on at Permalink Reply
s2d
This is how I normally install Concrete5 - that is, in a sub-directory of the document root directory, rather than the root. So far I haven't experienced any issues with installing it this way, and it helps to keep it separate from other files the hosting provider places in the root, and any other systems you install on the same site.

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:
define('BASE_URL', 'http://<your_site_domain>.com');
define('DIR_REL', '/<directory_where_c5_is_located>');


This is true of installations prior to 5.5, but I'm not sure about 5.5.
fastcrash replied on at Permalink Reply
fastcrash
wow kate, it's posible after all!

but this for the first install isn't?

how if we already install it?
s2d replied on at Permalink Reply
s2d
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!
crstf replied on at Permalink Reply
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).
s2d replied on at Permalink Reply
s2d
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
crstf replied on at Permalink Reply
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?
rtcary replied on at Permalink Reply
rtcary
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