This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

Introducing Cloudways Community Forum. Start Discussions and Get Instant Help From Cloudways Community. JOIN NOW

How to Apply Magento PatchesJune 30, 2017

 

In this KB

  • Benefits of applying Magento patches
  • Precautions before applying Magento patches
  • How to apply Magento patches
  • How to verify Magento patches

 

This guide will teach you how to apply Magento patches on your web store(s). To avoid multiple types of vulnerabilities including Shoplift bug, these patches are critical for the security of your site and your users.

Before applying patches, we strongly recommend you to create a staging environment of your web store by following this guide and then apply patches to your test application. When you are confident that everything is working fine on your staging site, only then proceed to replicate the installation on your live store.

Step 1: Check Magento Version and Read Latest Messages

First, you should know which version of Magento you are using. You can do so by logging into admin area with your credentials. Scroll down to the bottom of the page where you will see your Magento version.

Magento 1.9 Admin

Now, scroll up to the top of the page where you will see the latest messages and note down the security patch(es) to apply.

Magento Admin Panel

Step 2: Downloading the Appropriate Patch(es)

Login to Magento Commerce by clicking on My Account in the upper-right corner of the screen. If you are not registered, then you can create a free account.

After you’re logged in, click on Release Archive to see the Magento releases and security updates.

Magento Community Edition

Scroll down the page until you find Magento Community Edition Patches – 1.x. Locate the suitable patch to install by clicking on Select your format and then click on Download button.

In this example, we will download the SUPEE-7405 patch.

Magento Community Edition Patches

Step 3: Apply Magento Patch(es)

You will need to upload the downloaded patch file to the root of your Magento installation using an SFTP software like FileZilla. Visit this guide to know how to connect your server via SFTP.

After uploading the patch, you need to set the permission of patch file to be executable.

Log into the SSH terminal and run the following command:

chmod +x PATCH_SUPEE-7405_CE_1.9.2.2_v1-2016-01-20-04-35-33.sh

In the above command, we have set the permission for SUPEE-7405 patch. You can replace the patch name in the command with the one you have uploaded to root of your Magento application.

Now, to apply the patch run the following command to execute it.

bash PATCH_SUPEE-7405_CE_1.9.2.2_v1-2016-01-20-04-35-33.sh

You will see a similar message as shown below:

5

Step 4: Flush Magento Cache

After the verification process, you need to clear the cache of your Magento store.

To clear the Magento Cache, follow these two steps:

  1. On the Admin menu, select System and navigate to Cache Management.
  2. Click on the Flush Cache Storage button.

Step 5: Verify Magento Patches

To check whether your Magento store is secure, go over to Mage Report and enter your website URL. If your patch was installed correctly, you should see something like this:

Magento Patches

That’s it! You have learned how to install Magento patches.

Please insert Content
Have Questions? Ask From Our Helpful Community

Comments are closed.

Do you still need help?

Our Technical Support team is always at work.