Magento CE从1.9.3.6升级到1.9.3.10始终导致1.9.3.6

时间:2018-10-23 13:23:03

标签: magento ssh upgrade magento-1.9

我正在尝试将magento从1.9.3.6升级到1.9.3.10,但我始终使用1.9.3.6版本。

我正在使用以下命令:

cd ~/public
chmod 750 mage
./mage mage-setup .
./mage config-set preferred_state stable
./mage sync
./mage install https://connect20.magentocommerce.com/community Mage_All_Latest --force
php shell/indexer.php reindexall
rm -rf downloader/.cache/ var/cache/

然后我得到:

nstalling package community/Lib_ZF_Locale 1.12.10.11
Package community/Lib_ZF_Locale 1.12.10.11 installed successfully
Package installed: community/Interface_Adminhtml_Default 1.9.3.6
Package installed: community/Interface_Frontend_Default 1.9.3.6
Package installed: community/Interface_Install_Default 1.9.3.6
Package installed: community/Mage_Downloader 1.9.3.6
Package installed: community/Mage_Centinel 1.9.3.6
Package installed: community/Interface_Frontend_Base_Default 1.9.3.6
Package installed: community/Phoenix_Moneybookers 1.9.3.6
Package installed: community/Mage_Compiler 1.9.3.6
Package installed: community/Magento_Mobile 1.9.3.6
Package installed: community/Lib_Cm 1.9.3.6
Package installed: community/Cm_RedisSession 1.9.3.6
Package installed: community/Interface_Frontend_Rwd_Default 1.9.3.6
Package installed: community/Mage_Core_Adminhtml 1.9.3.6
Package installed: community/Mage_Core_Modules 1.9.3.6
Package installed: community/Lib_Js_Ext 1.9.3.6
Package installed: community/Lib_LinLibertineFont 2.8.14.12
Package installed: community/Lib_Js_TinyMCE 3.5.11.11
Package installed: community/Lib_Varien 1.9.3.6
Package installed: community/Lib_Google_Checkout 1.9.3.6
Package installed: community/Lib_Js_Calendar 1.51.1.12
Package installed: community/Lib_Js_Mage 1.9.3.6
Package installed: community/Lib_Phpseclib 1.9.3.6
Package installed: community/Mage_Locale_en_US 1.9.3.6
Package installed: community/Lib_Mage 1.9.3.6
Package installed: community/Lib_Magento 1.9.3.6
Package installed: community/Lib_Credis 1.9.3.6
Package installed: community/Lib_Pelago 1.9.3.6
Package installed: community/Lib_Unserialize 1.9.3.6
Package installed: community/Lib_IDNA2 1.9.3.6
Package installed: community/Lib_ZF 1.12.10.11
Package installed: community/Lib_Js_Prototype 1.9.3.6
Package installed: community/Lib_ZF_Locale 1.12.10.11

我还尝试了从文件升级,我到达这里:[https://magento.com/tech-resources/download][1],但随后出现错误,提示install-file:软件包文件无效。还有其他人有这个问题吗?怎么解决?

1 个答案:

答案 0 :(得分:2)

嗨,我终于找到了解决方案。 这是正确的顺序:

cd ~/public
chmod 750 mage
./mage config-set preferred_state stable
./mage list-upgrades
./mage upgrade-all --force

更新完成后,我们应该使用以下命令进行数据库升级:

php -f ./index.php

最后还有几个应运行的命令:

grep -rZl ‘0660’ . | xargs -0 -l sed -i -e ‘s/0660/0644/g’
grep -rZl ‘0770’ . | xargs -0 -l sed -i -e ‘s/0770/0755/g’
find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;

通过清理缓存来完成它:

rm -rf var/cache