2022-11-04 10:17:55 - 米境通跨境电商
最近升级了很多网站到Magento1.9.3,这里把升级方法和碰到问题记录一下。升级magento系统,首先第一步就是得备份。备份无非就是程序资源文件和数据库。一般的magento网站只需要拷贝网站目录副本和导出数据库SQL文件即可。下面的代码早前记录的【也不知道来源是哪里了】
升级步骤
1.设置站点为维护模式:
cd/你的magento根目录
touchmaintenance.flag
2.备当前的数据库:
mysqldump-uroot-p数据库名>数据库名.sql
3.备份当前网站的目录:
cp-R/你的magento根目录备份目录名
例如cp-rmageoo.commageoo.com_bak
4.更新:
cd/你的magento根目录
chmod-R777./*
rm-rfvar/cache/*var/session/*
chmod550./mage
./magemage-setup.
./mageconfig-setpreferred_statestable
./magelist-installed
如果最后的命令不会列出预期Magento的模块,如:
Installedpackageforchannel'community':
Lib_Unserialize1.9.2.4stable
Mage_All_Latest1.9.2.4stable
Interface_Adminhtml_Default1.9.2.4stable
Interface_Frontend_Default1.9.2.4stable
Interface_Install_Default1.9.2.4stable
Mage_Downloader1.9.2.4stable
Mage_Centinel1.9.2.4stable
Interface_Frontend_Base_Default1.9.2.4stable
Phoenix_Moneybookers1.9.2.4stable
Mage_Compiler1.9.2.4stable
Magento_Mobile1.9.2.4stable
Lib_Cm1.9.2.4stable
Cm_RedisSession1.9.2.4stable
Interface_Frontend_Rwd_Default1.9.2.4stable
Mage_Core_Adminhtml1.9.2.4stable
Mage_Core_Modules1.9.2.4stable
Lib_Js_Ext1.9.2.4stable
Lib_LinLibertineFont2.8.14.5stable
Lib_Js_TinyMCE3.5.11.4stable
Lib_Varien1.9.2.4stable
Lib_Google_Checkout1.9.2.4stable
Lib_Js_Calendar1.51.1.5stable
Lib_Js_Mage1.9.2.4stable
Lib_Phpseclib1.9.2.4stable
Mage_Locale_en_US1.9.2.4stable
Lib_Mage1.9.2.4stable
Lib_Magento1.9.2.4stable
Lib_Credis1.9.2.4stable
Lib_Pelago1.9.2.4stable
Lib_IDNA21.9.2.4stable
Lib_ZF1.12.10.4stable
Lib_Js_Prototype1.9.2.4stable
Lib_ZF_Locale1.12.10.4stable