Knowband Blog | Ecommerce Modules

How to upgrade Magento version on LINUX

This tutorial discusses how you can upgrade Magento community version to upper/latest version. There are number of new features in upper/latest version which can help you out in your management system.

Upgrade Magento tutorial will tell you to upgrade without loosing any data.

Prerequisites

It is highly recommended to install Magento on VPS with at least 2GB of RAM, if you have less then 2GB of RAM, we recommend you to create a swap file.

Step 1: Pre-Upgrade Magento Tasks

Complete the tasks discussed in the following sections in the order shown:

Enabling Exception Logging

Before you start upgrading, we recommend to enable exception logging. With exception logging enabled, it will be easier to diagnose errors during upgrade. After up-gradation you can disable the same.

To enable exception logging, you need to follow these steps-

The following figure shows an example.

Disabling cron jobs (EE 1.13.0.2 or later)

Ubuntu:

CentOS:

Flushing the Cache

Clear the Magento Cache with following steps-

Backing Up the Database

You need to back up your database, you can use mysqldump or any other tool.

Mysql dump command are are as follows

Archiving Customizations and Extensions

You can archive all your customized themes and extensions

Restoring Configuration Settings

After you have exported the magento database and extensions, you can roll back all the configuration settings which you changed earlier.

Step 2: Replace setup files

Clear the Magento Cache with following steps-