2022-11-04 10:17:55 - 米境通跨境電商
最近升級(jí)了很多網(wǎng)站到Magento1.9.3,這里把升級(jí)方法和碰到問題記錄一下。升級(jí)magento系統(tǒng),首先第一步就是得備份。備份無非就是程序資源文件和數(shù)據(jù)庫。一般的magento網(wǎng)站只需要拷貝網(wǎng)站目錄副本和導(dǎo)出數(shù)據(jù)庫SQL文件即可。下面的代碼早前記錄的【也不知道來源是哪里了】
升級(jí)步驟
1.設(shè)置站點(diǎn)為維護(hù)模式:
cd/你的magento根目錄
touchmaintenance.flag
2.備當(dāng)前的數(shù)據(jù)庫:
mysqldump-uroot-p數(shù)據(jù)庫名>數(shù)據(jù)庫名.sql
3.備份當(dāng)前網(wǎng)站的目錄:
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
如果最后的命令不會(huì)列出預(yù)期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