====== Copying & Moving a Feng Office installation ====== ===== How to create a copy of a Feng Office installation ===== Sometimes you may need to create a copy of a Feng Office installation, either for testing purposes so that you can test with your everyday data, or maybe to start a new installation with some preloaded data. These are the steps you need to follow to create a copy of a Feng Office installation: - Create a copy of your database (this can be done either with phpMyAdmin, MySQL GUI Tools, the mysql and mysqldump commands, etc.) - Optionally, create a new database user that can only access this new copy of the database, to avoid any remote possibility of writing data to your original database - Create a copy of your installation directory and delete file ‘cache/autoloader.php’ from the copy. - Edit the configuration file of the copied installation (FENG_ROOT/config/config.php). - Change the value of the DB_NAME constant to the name of the newly created database. - Change the DB_USER and DB_PASS constants as needed. - Change the ROOT_URL constant to point to the new installation. Now you can access your copied installation and it will not affect your original installation. ===== How to move an existing Feng Office installation ===== Let's say you have installed your Feng Office in the following directory: http://www.myserver.com/mydirectory/feng/ Now you decide to move this installation to: http://www.myserver.com/another_directory/ - Move the folder within your sever to the new location - Change the path in the file **FENG_ROOT/config/config.php** accordingly. - Delete the file **FENG_ROOT/cache/autoloader.php** (which will be recreated automatically with the new path) - Change the permissions of the following folders to 775 (or 777 on some hostings): - FENG_ROOT/cache - FENG_ROOT/config - FENG_ROOT/tmp - FENG_ROOT/upload