How to move a C5 install

Permalink
So, through buying a new server, I need to move a c5 install. Any ideas on how to do this? I've copied the files and SQL database, but it hasn't seemed to work right. Not sure what else I can do, or what's the most straightforward way to do this.

Any suggestions would be most appreciated.

Thanks!

razorfrog
 
dmt replied on at Permalink Reply
dmt
Hi, have you changed the settings in the config file? Also make sure that the permissions on files and folders are maintained after you have moved the site.

I use SSH to make changes on my server.
andrew replied on at Permalink Reply
andrew
Like dmt says...you really shouldn't have to do much beyond change the entries in config/site.php. Make sure your BASE_URL is set to your new domain...and if the site isn't at the top of the domain you'll need the relative directory to the site to be DIR_REL (but usually this is blank.)

Beyond that, and the setting of permissions on the files/ directory and all its subdirectories so that they can be written to by the web server (chmod 777 or something similar), that should be all you need to do.
razorfrog replied on at Permalink Reply
razorfrog
Cool - thanks! I'll let you know if it works.
liberalmark replied on at Permalink Reply
liberalmark
So I exported my db and imported it to another server. I moved my files there and tried to log in. I am able to log in and can see the site, but I get these errors:

Warning: Unknown: open(/path/to/session//sess_82upjk2b9egh5qrm47q8ut9t05, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/path/to/session/) in Unknown on line 0

Any thoughts?
andrew replied on at Permalink Reply
andrew
/path/to/sessions sounds like a placeholder...

What happens if you uncomment the line

/* ini_set('session.save_path', DIR_SESSIONS); */

in startup/session.php? This should set your session to be /tmp.
glockops replied on at Permalink Reply
glockops
Thanks for the suggestion!