Showing results for 
Search instead for 
Did you mean: 

Cannot install SUPEE-1533 and SUPEE-5344


Cannot install SUPEE-1533 and SUPEE-5344

I have downloaded the correct versions for my installation ( and copied them to my installation root (ls gives me app, downloader etc).


when I run 'sh' in PuTTY I get the following error messages:-


bash-3.2$ sh
which: no cat in ((null))
which: no patch in ((null))
which: no sed in ((null))
which: no pwd in ((null))
which: no basename in ((null)) line 38: PATCH_SUPEE-1533_                                 command not found
ERROR: "/app/etc/" must exist for proper tool work.


I can see what the problem is; to access the etc folder the command should be app/etc (without the first /)


My installation is in a subdomain on my site, which is in itself shared hosting. When in the store root 'pwd' gives:-




so referring to directories relative to root is never going to work.


How can I stop the script referring back to root?




Re: Cannot install SUPEE-1533 and SUPEE-5344

I encountered the same problem with the patch file, and I have a similar server set-up like you do, so I just manually updated the files that are mentioned in the patch file itself. You can use your IDE or any text editor to open the .sh file (the patch file) and then edit the individual Magento files mentioned in the patch file--lines beginning with "+" are added, while lines beginning with "-" are deleted. All updates follow after the line that says "__PATCHFILE_FOLLOWS__" in the patch file.


Magento CE is dated 2014-Nov-24, while patch 1533 is dated 2014-Oct-3, so I think you only need patch 5344 (2015-Feb-9). I double-checked and saw the patch 1533 updates already in my Magento installation.


Before you replace the Magento files on your server, backup each file updated by patch 5344 first.


Hope this helps.