最模板 - 外贸网站建设,外贸网站模板

最模板

当前位置: 首页 > Magento > Magento教程 >

Magento从1.7版本升级到1.8版本的方法

时间:2014-11-30 04:06来源:未知 作者:最模板zuimoban 点击:
1. 设置站点为维护模式: 1 2 cd /你的magento根目录 touch maintenance.flag 2. 备份当前的数据库: 1 mysqldump -uroot -p 数据库名 数据库名.sql 3. 备份当前网站的目录: 1 cp -R /你的magento根目录 备份
1. 设置站点为维护模式:
 
cd /你的magento根目录
touch maintenance.flag
 
2. 备份当前的数据库:
 
 
mysqldump -uroot -p 数据库名 > 数据库名.sql
3. 备份当前网站的目录:
 
cp -R /你的magento根目录 备份目录名
 
4. 更新:
 
 
cd /你的magento根目录
chmod -R 777 ./*
rm -rf var/cache/* var/session/*
chmod 550 ./mage
./mage mage-setup .
./mage config-set preferred_state stable
./mage list-installed
如果最后的命令不会列出预期Magento的模块,如:
 
 
Installed package for channel 'community' :
Lib_Js_Ext           1.7.0.0 stable
Lib_LinLibertineFont 2.8.14.1 stable
Lib_Js_TinyMCE       3.4.7.0 stable
Lib_Js_Calendar      1.51.1.1 stable
Lib_Phpseclib        1.5.0.0 stable
Lib_ZF               1.11.1.0 stable
Lib_Js_Prototype     1.7.0.0.4 stable
Lib_ZF_Locale        1.11.1.0 stable
Mage_All_Latest      1.7.0.2 stable
Interface_Adminhtml_Default 1.7.0.2 stable
Interface_Frontend_Default 1.7.0.2 stable
Interface_Install_Default 1.7.0.2 stable
Mage_Downloader      1.7.0.2 stable
Mage_Centinel        1.7.0.2 stable
Interface_Frontend_Base_Default 1.7.0.20 stable
Phoenix_Moneybookers 1.3.2 stable
Mage_Compiler        1.7.0.2 stable
Magento_Mobile       1.7.0.2.23.1 stable
Mage_Core_Adminhtml  1.7.0.2 stable
Mage_Core_Modules    1.7.0.2 stable
Lib_Varien           1.7.0.2 stable
Lib_Google_Checkout  1.7.0.2 stable
Lib_Js_Mage          1.7.0.2 stable
Mage_Locale_en_US    1.7.0.2 stable
Lib_Mage             1.7.0.2 stable
则使用如下命令:
 
 
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
如果您的Magento模块列举成功然后使用下面的命令:
 
 
./mage list-upgrades
./mage upgrade-all
如上命令执行完成,会看到哪些升级成功,哪些没有升级;升级后要恢复目录的权限:
 
 
php shell/indexer.php reindexall
chmod -R 644 ./*
find . -type d -exec chmod 755 {} \;
chmod 550 ./mage
升级成功后恢复网站在线:
 
 
cd /your_magento_folder
rm -f maintenance.flag
 
(责任编辑:最模板)
------分隔线----------------------------
栏目列表
推荐内容