patch-file-uploaded

Step 5: Install the Patch to the Backup (Optional)

1. Return to Putty in the directory where the patch, backup, and magento folders are located.
Change directories to the patch folder, and list a directory to verify that the patch files are
there. Then, copy each patch file up one level. (Just remember—two dots up, one dot down.)
cd patch
ls -l
cp PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh ..
cp PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh ..
cd ..
ls -l
Now the patch files are at the same level as the backup and magento folders, where they can
be easily accessed.

2. Because the temporary patch folder has served its purpose, enter the following command to
remove it from the server:
rm -rf patch
ls -l
3. Copy each patch file to the backup folder. Then, change directories to the backup folder, and
list the directory. You should see the patch files in the directory.
cp PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh backup
cp PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh backup
cd backup
ls -l
4. To install the patch, use the appropriate syntax for the type of patch, and substitute the file
name of the patch to be installed. There are two command formats, depending on the patch file
name extension. To avoid typos, copy the patch file name from Putty, and paste it into
Notepad. Then, add the required command syntax, paste it into the command line, and press
Enter.

sh PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh
sh PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh
The following message appears if the installation succeeds:
Patch was applied/reverted successfully.
If the patch is already installed on your computer, an error message appears. You don’t need to
install it again.
So that’s really all there is to it. It might seem rather anticlimactic after so much preparation,
but it’s important to understand the process before you apply the patch to your store.
5. The next step is to change directories to the magento folder, and reset the permissions so the
patch can be copied and installed to your live store. Then, you will copy the patch file to the
magento folder.
cd ..
ls -l
cd magento
find . -type d -exec chmod 700 {} \;
find . -type f -exec chmod 600 {} \;
cd ..
cp PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh magento
cp PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh magento
cd magento
ls -l

Leave a Comment

Your email address will not be published. Required fields are marked *