如何将 magento 1.4 1.1 升级到 1.7.0.2 [英] How to upgrade magento 1.4 1.1 to 1.7.0.2

查看:32
本文介绍了如何将 magento 1.4 1.1 升级到 1.7.0.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 1.4.1.1 中有一个 magento 站点.

I have a magento site in 1.4.1.1.

现在我想将站点升级到 magento 1.7.0.2.

Now i want to uprgade the site to magento 1.7.0.2.

我已经完成了以下步骤:

I already did the following steps:

1.system->magento connet->magento connect manager
2.Then i enter the extension key as "magento-core/Mage_All_Latest"
3.Then pressed "Check for Upgrades" button.

现在我的窗户被吹了:

那我接下来要做什么?

那么我如何使用 magento 连接管理器进行升级?

So how can i do the upgarde using magento connect manager?

如何升级 magento 网站?

How can i upgarde the magento site ?

有人有解决方案吗?

我在本地服务器中的 magento 站点.

My magento site in localserver.

推荐答案

数据库结构从1.4.1.1到1.4.2有较大变化,需要先升级到1.4.2再直接升级到1.7.0.2.

Database structure has major changes from 1.4.1.1 to 1.4.2 so you need to upgrade first to 1.4.2 then you can upgrade to 1.7.0.2 directly.

我喜欢命令行,所以我通常通过命令行升级系统,这是我的过程:

I like the command line so I usually upgrade the system by command line, this is my procedure:

用补丁版本替换文件下载器/pearlib/php/Archive/Tar.php(它有一个错误):http://www.mediafire.com/?35no55xuoeek20a

Substitute file downloader/pearlib/php/Archive/Tar.php with the patched version (it has a bug): http://www.mediafire.com/?35no55xuoeek20a

为 Magento 升级做准备

Prepare for Magento upgrade

让您对 Magento 1.4.1.1 进行成像.网上商店,您需要将其升级到 1.5.或 1.6 版本.首先强烈建议备份你的live store文件和数据库.

Lets imaging that you have Magento 1.4.1.1. web store and you need to upgrade it to 1.5. or 1.6 version. First of all it is highly recommended to backup your live store files and database.

接下来,您需要从托管服务提供商处获得 SSH 访问权限,并通过 SSH 协议连接到您的服务器.通过 SSH 连接后,转到您的商店文件夹并执行以下命令:

Next you need to get SSH access from your hosting provider and connect to your server via SSH protocol. After connection via SSH go to your store folder and execute these commands:

1 – 将 lib/pear 文件夹的权限更改为可写(递归):

1 – Change permissions on lib/pear folder to writable (recursively):

chmod -R 777 lib/PEAR

2 – 执行此命令以准备 Magento 进行升级:

2 – Execute this command to prepare Magento for upgrade:

./pear mage-setup

你很可能会在命令执行后看到这个结果:

Most likely you will see this result after command execution:

Channel "connect.magentocommerce.com/core" is already initialized

从 Magento 1.4.1.x 升级到 Magento 1.4.2.0

Upgrade from Magento 1.4.1.x to Magento 1.4.2.0

即使您将 Magento 商店升级到 1.5 或 1.6 版本,此步骤也是必要的.

This step is necessary even if you upgrade your Magento store to 1.5 or 1.6 versions.

3 – 执行 Magento 升级命令:

3 – Execute Magento upgrade command:

./pear upgrade -f magento-core/Mage_All_Latest-stable

命令的输出将显示升级了哪些核心包:

Output of the command will show you what core packages were upgraded:

…
upgrade ok: channel://connect.magentocommerce.com/core/Mage_Centinel-1.4.2.0
upgrade ok: channel://connect.magentocommerce.com/core/Interface_Frontend_Base_Default-1.4.2.0
upgrade ok: channel://connect.magentocommerce.com/core/Phoenix_Moneybookers-1.2.3
upgrade ok: channel://connect.magentocommerce.com/core/Find_Feed-1.0.7
upgrade ok: channel://connect.magentocommerce.com/core/Interface_Adminhtml_Default-1.4.2.0

4 – 当这部分升级完成后,输入以下命令:

4 – When this part of the upgrade will be complete, enter these commands:

chmod 550 ./mage
./mage mage-setup .

命令执行后你会看到这个结果:

You will see this result after command execution:

Successfully added: http://connect20.magentocommerce.com/community

表示Magento connect 2.0频道已成功加入频道列表.

It means that Magento connect 2.0 channel was added to the channels list successfully.

5 – 接下来,输入以下命令:

5 – Next, enter this command:

./mage sync

结果将是:

…
Successfully added: community/Mage_Locale_en_US-1.4.2.0
Successfully added: community/Interface_Install_Default-1.4.2.0
Successfully added: community/Phoenix_Moneybookers-1.2.3
Successfully added: community/Mage_Downloader-1.5.0.0
Successfully added: community/Lib_Google_Checkout-1.4.2.0

升级到 Magento 1.4.2.0 已完成,现在您可以继续升级到 Magento 1.5.1.0 或 1.6.0.0 版本.

Upgrade to Magento 1.4.2.0 is complete and now you can proceed with upgrade to Magento 1.5.1.0 or 1.6.0.0 version.

空变量/缓存 &变量/会话文件夹清空浏览器缓存

empty var/cache & var/session folder empty browser cache

访问您的网站以触发更新

visit your website to trigger the update

更新时间 15min

从 Magento 1.4.2.0 升级到 Magento 1.5.10 或 Magento 1.6.0.0

Upgrade from Magento 1.4.2.0 to Magento 1.5.10 or Magento 1.6.0.0

现在您可以将商店升级到 1.5 或 1.6 版.

Now you can upgrade your store to version 1.5 or 1.6.

在进行 Magento 升级的这一部分之前,查看 Magento 升级脚本将升级您商店的版本非常重要.输入此命令进行检查:

Before proceeding with this part of Magento upgrade, it is very important to see to what version Magento upgrade scripts will upgrade your store. Enter this command to check this:

./mage list-upgrades

如果你会看到这个结果:

If you will see this result:

Updates for community:
Mage_All_Latest: 1.4.2.1 => 1.6.0.0
Lib_Js_Mage: 1.4.2.0 => 1.6.0.0
Lib_Varien: 1.4.2.0 => 1.6.0.0
Lib_Phpseclib: 1.4.2.0 => 1.5.0.0

这意味着您的 Magento 将升级到 1.6.0.0 版本.如果它不是您需要的,您可以将升级频道更改为稳定"并将您的 Magento 升级到版本 1.5.1.0.

It means that your Magento will be upgraded to version 1.6.0.0. If it is not what you need you can change upgrade channel to "stable" and upgrade your Magento to version 1.5.1.0.

6 – 输入此命令将升级频道更改为稳定版:

6 – Enter this command to change the upgrade channel to stable:

./mage config-set preferred_state stable 
   or
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force 

此后,./mage list-upgrades"命令将显示以下结果:

After this the "./mage list-upgrades" command will show you this result:

Updates for community:
Mage_All_Latest: 1.4.2.1 => 1.5.1.0.1
Lib_Js_Mage: 1.4.2.0 => 1.5.1.0
Lib_Varien: 1.4.2.0 => 1.5.1.0
Lib_Phpseclib: 1.4.2.0 => 1.5.0.0
Mage_Core_Adminhtml: 1.4.2.0 => 1.5.1.0
Mage_Core_Modules: 1.4.2.0 => 1.5.1.0

7 – 选择频道后,您可以使用以下命令将 Magento 升级到 1.5.1.0(或 Magento 1.6.0.0):

7 – After channel selection you can upgrade your Magento to 1.5.1.0 (or to Magento 1.6.0.0) using this command:

./mage upgrade-all –-force

您将在屏幕上看到升级包:

You will see upgraded packages on your screen:

…
Package upgraded: community/Mage_Locale_en_US 1.6.0.0
Package upgraded: community/Lib_Mage 1.6.0.0
Package upgraded: community/Lib_ZF 1.11.1.0
Package upgraded: community/Lib_Js_Prototype 1.7.0.0.1
Package upgraded: community/Lib_ZF_Locale 1.11.1.0

现在升级已完成,您可以在浏览器中访问您的 Magento 商店执行数据库升级.如果一切都正确升级,您将在浏览器中看到升级后的商店.

Now the upgrade is complete and you can execute database upgrade visiting your Magento store in your browser. If everything was upgraded correctly, you will see upgraded store in your browser.

您可以在 Magento 管理面板的页脚中查看您商店的版本.

You can check version of your store in the footer of Magento administration panel.

空变量/缓存 &变量/会话文件夹清空浏览器缓存

empty var/cache & var/session folder empty browser cache

访问您的网站以触发更新

visit your website to trigger the update

更新时间 60 分钟取决于您的硬件

Update time 60min depend on your hardware

这适用于我的许多客户.

This works for many of my customers.

希望能帮到你

如果您需要帮助,我是一名自由职业者.

I'm a Freelancer if you need help.

这篇关于如何将 magento 1.4 1.1 升级到 1.7.0.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆