Hosting transfer Question

Permalink
Not sure if I have this in the right forum.
I run a scouts web site using C5. We were offered the use of a parent's server to instal it on. We are very grateful to him as it saved us money (something Scouts have very little of).
Now, however, his son has left and, although he has kindly offered to continue hosting our site, there have been a few issues that we have been unable to get sorted. We also feel that, having already lost one website due to a catastrophic hardware failure on the host server we were using at the time, there is a risk that we could lose it all over again. I, for opne, have no intention of building a third website!.
So, we want to start paying for our site to be hosted by Concrete5, on the basis that if it does not work here then there is no hope!
Finally, the questions:- How do I go about transferring our existing site onto the C5 host server? Including photos, articles, user access and all the other things we have built up over the last 12 months. Is there anything that I should watch out for?
Thanks in advance for any guidance, suggestions, comments, etc. Mike

MikeS
 
wagdi replied on at Permalink Reply
wagdi
Hi Mike,

Here is a tutorial on moving a site by Mnkras-

1. Backup your databse, this is just incase something goes wrong but nothing should

(An easy way to backup your database while not suggested is to use DavidMIRV's Addon in concrete5.4.0+ this is built in (no addon needed))

*Note: If moving from Windows to Linux make a mysql patch using this Addon.


2. Backup your file structure (the place you installed c5) this is also just incase something goes wrong.

Ok now for the moving part.

3. Disable AND clear the cache.


4. Disable Pretty url's (you can re-enable later)


5. Move your c5 directory to where you want it to go, (the place where the index.php is)


6. Open the /config/site.php NOT the /concrete/config folder.


7. You will see something that looks like this:

define('DB_SERVER', 'mysql.yoursite.com');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'pass');
define('DB_DATABASE', 'dbname');
define('BASE_URL', 'http://site.com');
define('DIR_REL', '');
define('PASSWORD_SALT', 'JKSD84KSFU94WJHFS984JS0F03JF0SJ3');

there are 2 main lines we need to look at:

define('BASE_URL', 'http://site.com');
define('DIR_REL', '');


8. in the line: define('BASE_URL', 'http://site.com');

Where it says your site name e.g. concrete5.org. Change that you your new url so it would be like"

define('BASE_URL', 'http://url.concrete5.org');

make sure there are NO slashes in it!

if you are installing it in the root directory of a domain (like concrete5.org and NOT concrete5.org/url) then you are done Yipee!!!!

9. If not you got 1 more step,

If you lets say are moving from the c5 site from this url: concrete5.org/url
to this url: concrete5.org, this is what the line would look like:

define('DIR_REL', '/url');

to move it to the root directory just change it to:

define('DIR_REL', '');

if you are moving from concrete5.org/url to concrete5.org/url2 you would just change the /url to /url2

10. This step is only if you are moving your mysql database. You should have already backed up your database in Step 1. Open your site.php from the above steps:

define('DB_SERVER', 'mysql.yoursite.com');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'pass');
define('DB_DATABASE', 'dbname');
define('BASE_URL', 'http://site.com');
define('DIR_REL', '');
define('PASSWORD_SALT', 'JKSD84KSFU94WJHFS984JS0F03JF0SJ3');
we are going to look at

define('DB_SERVER', 'mysql.yoursite.com');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'pass');
define('DB_DATABASE', 'dbname');
from here its pretty obvious, insert the info for your database, but first! import the sql file you exported in Step 1.

Now go to Dashboard-> Maintenance->Run Jobs to generate a new sitemap.xml file and refresh the search index.

Thats it!

If you need any help PM me

Mike/Mnkras

SOURCE: http://www.concrete5.org/documentation/installation/moving_a_site/...


Here is another by Jerlo727- http://www.concrete5.org/community/forums/installation/moving-concr...


This is the Concrete5 Support page-http://www.concrete5.org/services/support-options/...

This is the Concrete5 Hosting page-http://www.concrete5.org/services/hosting/...

Hope that helps :)
MikeS replied on at Permalink Reply
MikeS
Brilliant! Thanks very much. Just what I need.
wagdi replied on at Permalink Reply
wagdi
You're welcome :)