2012年4月16日星期一

magento move

If your space you can use ssh, you can see the more detailed process of moving in the wiki the official website of the Moving the Magento To Another Server.
 
Whether your server is linux or windows system, the process is the same, file transfer, transfer database, to initialize the Web site user name password, or not initialized.
 
1. on the  file:
 
var folder in the root directory of magento magento system cache folder, which things can be removed to reduce the size of the file transfer. Note, however inside the backup folder to store the to magento background System-> Tool-> backup to run backup after the database file. The backup file, if required, preserved, this folder can also be deleted. If you find inside a pear folder, then it is magic, because there is stored is magento plugin or template package. There are things, backup and then delete it.
 
magento root directory of the media folder, inside the tmp folder to delete, find under other folders inside the cache file, delete.
 
magento root directory of the app / etc / local.xml file so the configuration file is to tell magento to which the database server, database name, username and password to access the database. So when you moved to a new space, you wanted to change to your new space. If you do not overwrite this file directly deleted, and will appear in the new space for the first time in the browser to access your magento installation interface, like the first time to install magento installation of the end local.xml they are automatically created better.


local.xml file fragment:
 
<default_setup>
 
<connection>
 
<host> <[CDATA [localhost]]> </ host> <! - Database Server Address, localhost refers to the local ->
 
<username> <[CDATA [root]]> </ username> <! - database username ->
 
<password> <! [CDATA []]> </ password> <! - Database Password ->
 
<dbname> <! [CDATA [magento1324test]]> </ dbname> <! - database name ->
 
<active> 1 </ active>
 
</ Connection>
 
</ Default_setup>
 
2.  on the database
 
The biggest headache is the magento database, for each export is very strenuous, and each time you import will have false alarms, but in the end everything is normal.
 
The name of the database file with the log table, should all be cleared, I tried, and finally everything is working properly. You please make a backup emptied after running the experiment, no problem and then do it, Magento is a very magical thing, I always can not guarantee that nothing.
 
Small database can be exported using phpmyadmin or with the magento background of the System-> Tool-> backup backup. Database large with ssh is the most convenient. If you do not understand ask a technical customer service or technical customer service to help you back up. A lot of space cpanel or other Web-based management software can also backup school.
 
Do not have to modify any table in the database, even if you want to change the URL to change magento background username and password, if you want to change, as long as the above mentioned apc / etc / local.xml file so files deleted can be sure to empty your var folder, and then initialize your Magento.
 
If your magento other space change magento dedicated space to install, and now you want to pay attention to your magento database tables prefixed in apc / etc / local.xml file so the configuration file, you can see, there are , then write in the configuration file or the installation process, or you'll be in trouble.
 
local.xml fragment:
 
<db>
 
<table_prefix> <! [CDATA []]> </ table_prefix in> <! - here code fragment shows no prefix, but you should pay attention to you ->
 
</db>


shopping from china website:Funny fridge magnet || nike tn pas cher

没有评论:

发表评论