Personal tools
User Handbook/Installation/Copying To a New Server
From CMSMS
Table of Contents
- Start Page
- Installation
- Requirements
- Quick Installation per FTP
- Installation via Shell
- Optional Settings
- Troubleshooting
- Upgrading
- Copying To a New Server
- Getting Started
- The Admin Panel
- Extensions
- Tips & Tricks
- Glossary of Terms
- Developers Guide
This page in: English - Deutsch - Français - Svenska - Русский - Norsk - Polski - Nederlands - Español - Lietuvių
Copying To a New Server
So you got a brand new server and need to copy your old site to a new server?
basic steps are easy:
- clear cache in admin and log out
- copy all files and directories from old server to new server
- dump database from the old server
- insert dump to new database
- edit config.php to match the new server
- check permissions against Install instructions
- enjoy
Small Howto
In this howto path to pages is /var/www/cmsmadesimple and username for the database is USER, password is PASS and database host is HOSTNAME. ssh is used to connect to servers and sftp to move files between. old server means the original and new server is the target server.
- clear the cache from the admin (and maybe set a site down message)
- ssh to old server
- create tar ball of the files (without tmp/) and database
- cd /var/www/cmsmadesimple/
- mysqldump -uUSER -hHOSTNAME -p DATABASE > dump.sql
- cd ..
- tar -zcf backup.tar cmsmadesimple/*
- copy tarball to new server
- sftp USER@NEWSERVER
- put backup.tar
- close connection to old server (the old server still works like it used to as nothing has been modified there)
- open connection to new server (the copied file most probably is in your $HOME so lets copy it to right place)
- cp backup.tar /var/www/
- cd /var/www/
- tar -zxf backup.tar
- cd cmsmadesimple
- mysql -uUSER -hHOST -p DATABASE < dump.sql (after this you can delete dump.sql)
- FAVORITEEDITOR config.php
- you need to change database settings and all paths (in this example paths are the same for both servers)
- verify the tmp/ and tmp/cache folders are empty, writeable and belong to the correct user.
- login to new server admin and clear cache and unset site down message
Hopefully everything works!
This page in: English - Deutsch - Français - Svenska - Русский - Norsk - Polski - Nederlands - Español - Lietuvių
