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!
Any suggestions would be most appreciated.
Thanks!
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.
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.
Cool - thanks! I'll let you know if it works.
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?
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?
/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.
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.
Thanks for the suggestion!
I use SSH to make changes on my server.