Contact
Site: US UK AU |

How to patch your Magento 1 store

How to patch your Magento 1 store

Stay informed

As a Magento store administrator, it is your responsibility to stay current on patch releases. We do not monitor our clients’ Magento versions or their patches, and we do generally do not notify our clients of new patches as they are released.

To stay current, we urge all clients to sign up for security alerts at the Magento website. In addition, watch for alerts posted within the Administrative area of your specific Magento installation or installations.

How to install patches

Apply Magento patches immediately upon release. Most releases address significant security threats. Ignoring them exposes your store and your customers to malicious activity. 

ATTENTION: We strongly recommend you enlist the services of a developer when applying patches. Some patches may affect your store in unpredictable ways or cause downtime. If you do not yet have a developer, consider starting your search with our list of Magento development partners.

Step 1: Back up your store

ATTENTION: Always back up you store before installing a patch.

See How to back up your Magento 1 store.

Step 2: Download the patch

Visit the Resources page of the Magento website.

  1. Click RELEASE  ARCHIVE.


  2. Locate your desired patch, select your format, and click DOWNLOAD. If you are unsure of which patch to download, scroll to the ver 1.9.x section and download the first one.

    ATTENTION: Your most current version may vary from the one pictured below.

Step 3: Disable the compiler

The compiler is disabled by default. If you have not previously enabled the compiler, skip to Step 4. If you have previously enabled the compiler, or are unsure:

  1. From the Magento Admin panel, select System > Tools > Compilation.


  2. Choose the option that applies to you:

    1.  If the compiler is disabled, go to Step 4: Install the patch.


    2. If the compiler is enabled, click Disable.

 Step 4: Install the patch

Choose your method:

Method 1: Use SSH

ATTENTION: To use this method, you must first enable SSH on your account. See How to enable SSH for details.

Method 2: Run a script

  1. Upload the patch files to the root of your [magento] installation folder.

  2. Verify the compiler is disabled.

  3. Use a text editor to create a file named patch.php containing the following script, but replace patch_file_name with the actual file name:

    <?php

    print("<PRE>");

    passthru("/bin/bash patch_file_name.sh");

    print("</PRE>");

    echo "Done";

    ?>

  4. Upload the patch.php file to the root of your [magento] installation folder.

  5. Run the script below, but replace yourstore.com with your domain name.

    http://www.yourstore.com/patch.php

    If you see the message below, installation was successful:

    Checking if patch can be applied/reverted successfully...

    Patch was applied/reverted successfully.

    Done

  6. After installing the patch, delete the patch.php file from your server. If you encounter an error and are a Nexcess client, note the error and contact our Support Team.

  7. Refresh your cache from the Magento Admin panel by selecting System > Cache Management, then Flush Magento Cache.

  8.  If your store is compiled, rerun the compiler. See Step 3: Disable the compiler for more information. 

Method 3: Patch files locally and upload

Although it is possible to download your site to your local machine, execute the patch, and then upload the patched files to your server, this method should only be attempted by experienced Magento developers.

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
What are the benefits of dedicated IP addresses?
Added on Thu, Jan 14, 2016
How to add admin users in Magento 1.x
Added on Wed, Dec 7, 2016
How to back up your Magento 1 store
Added on Thu, Oct 18, 2018
How to optimize Magento performance
Added on Mon, Jul 29, 2013
How to disable maintenance mode in Magento
Added on Fri, Dec 15, 2017
How to conserve disk space in Magento
Added on Fri, Jan 17, 2014
How to create Magento and WordPress dev sites
Added on Wed, Aug 3, 2016
What is Varnish?
Added on Thu, Aug 28, 2014
How to protect your Magento store from the Credit Card Hijack exploit
Added on Tue, Nov 22, 2016
How to configure CDN access for Magento
Added on Wed, May 16, 2018