Magento – Steps to moving magento from one server to other
If you are already setup your magento store on live server then some time you need to move it to the other server for test.dev or for other things so you don’t need to think too much about risk and other factors here are some simple steps which will helps you to do this
clear the /var/cache and /var/session directory which is allow more space to you
then add your magento folder into zip/rar file and extract them on the target server.
once you finished with the copying then you should set the correct permissions for
magento files and folders
/var and contents should have permissions “777″
/media and contents should have permissions “777″
/app/etc and contents should have permissions “777″
/tmp folder create and contents should have permissions “777″
Tmp file create
Then on line 91 or near this line, you will find:
'cache_dir' => null,
'cache_dir' => "var/tmp/",
How to enable error and exception logging in Magento?
System > Configuration > Developer >
By default, Magento does not register messages about errors and exceptions; so if something bad happens, you don’t even know.
To turn on the logging, you can navigate to System > Configuration > Developer > Log Settings and set the «Enabled» option to «Yes»
Don’t forget to set full access permissions (777) to the following folder: /var/log, since that is the place where those log files are stored.
database core_config_file home and site path change