how to install magento patch

Installing Magento Patch using SSH – Part 5

Since the topic is, How to install Magento patch? Also as it’s a longer process. Here is the fifth part of the article. As a result, we’ll discuss the process of “Installing Patch to our store”. So, let’s go!

For installing patch we need a set of commands. Hence, remember the commands need to be executed from our Magento folder with correct codes to install patch in store.

How to install Magento Patch in your store: 

Here the followings are the extensions we require to complete the operation.

.sh - sh [] 

.patch - patch –p0 < [patch_filename.patch]

Further note: The name of patch file is case and spelling sensitive. So, it’s advised to keep a Notepad to keep the name free from spelling and case errors.

Now copy the commands following and paste it inside the command line to execute.



Secondly after completing the above mentioned process we’ll now remove the Patch files from Mage Folder. Here is the set of code to remove Patch files:



Here in the final step of How to install Magento patch in our store we’ll lock the permissions for Mage Folder. So, following are codes to do the job.

find . -type d -exec chmod 500 {} \;

find . -type f -exec chmod 400 {} \;

find var/ -type f -exec chmod 600 {} \;

find media/ -type f -exec chmod 600 {} \;

find var/ -type d -exec chmod 700 {} \;

find media/ -type d -exec chmod 700 {} \;

ls -

Next in our article we’ll do some cleanup process. So we’ll remove the backup files & folders from our server. For doing so use the following set of the codes:

cd ..

ls -l

rm -rf backup



ls -l

How to install Magento Patch? – Unauthorized Access

First log in to your store using the admin credentials.

Under the Admin panel navigate through System >> Users.

Now follow the following steps:

To begin with check for the any unauthorized user accounts. If there is nothing suspicious leave without making any changes. But if there any unauthorized user then simply press the delete button to remove the account. So, that’s it!

Currently Viewing Part 5 | Go to – Part 1 | Part 2Part 3 | Part 4Part 05 | Part 6