I don't know how to update patches for magento. I tried cygwin in Windows but without success:

enter image description here

Can anybody help me to solve these problems?

  • Your question and tag is contradicting. In question you've mentioned magento2 and in tags there is magento-1.9. Jul 27, 2016 at 3:58
  • sr i edited my question
    – xanka
    Jul 27, 2016 at 3:59

3 Answers 3


To get patches for Magento CE:

  • Log in to magentocommerce.com/download. (Click My Account in the upper right corner of the page.) If you don't have an account, you can register for one; the account is free.
  • In the Magento Community Edition Patches section, locate the patch to install.
  • From the list next to the patch, choose your CE version.
  • Click Download.
  • After the patch downloads, continue with applying these patches.

To apply a Magento patch:

  • Transfer the patch .sh file to your Magento installation root directory.
  • Enter the following command as a user with sufficient privileges to write to Magento files (typically, the web server user or root):

    sh patch-file-name.sh

    A message such as the following displays to confirm the patch installed successfully:

    Patch was applied/reverted successfully.

Source: http://devdocs.magento.com/guides/m1x/other/ht_install-patches.html

  • when i run sh PATCH_SUPEE-2677.sh it return 'sh' is not recognized as an internal or external command, operable program or batch file. So i tried install cygwin. u can see image in my question.
    – xanka
    Jul 27, 2016 at 4:07
  • I think this could solve your problem: superuser.com/questions/820674/… Jul 27, 2016 at 4:21

Looks like the patch file is not set to executable. To fix that, run first:

chmod +x ./PATCH_SUPEE......

or pass it to bash instead:

bash ./PATCH_SUPEE.....

Install a Linux inspired shell in windows

For example find git for windows online

Use the bundled shell that comes with it.

Git for Windows provides a BASH emulation used to run Git from the command line. *NIX users should feel right at home, as the BASH emulation behaves just like the "git" command in LINUX and UNIX environments.

Then you should be able to execute patch files as per docs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.