Applying Magento Patches on Windows Server

Magento patches: https://www.magentocommerce.com/download

You cannot run sh PATCH_SUPEE-1868_CE_1.7.0.2_v1.sh in windows CMD. You will need a software like Git to run linux shell commands on windows. Follow the instruction below to get started.

1. If you don’t have Git Installed, download Git Portable version here.

2. Extract to desired folder then Open GitPortable.exe

Applying Magento Patches on Windows Server

3. Now browse to your magento folder by typing cd c:/path/to/magento-folder/

4. If successful, you should see HOST:/c/path/to/magento-folder/ User$ . You can also type pwd to see the location of the current directory.

5. Next download the magento patches that you needed and save to the root folder of your magento installation.

Applying Magento Patches on Windows Server

6. Now go back to GitPortable and type sh patchfilename.sh You can paste the filename by clicking the title bar > Edit > Paste

Applying Magento Patches on Windows Server

If you get an error… ERROR: “/app/etc/” must exist for proper tool work.

  • Open the sh patch file in a text editor and find CURRENT_DIR=$PWD_BIN/
  • Replace this line with CURRENT_DIR=

ERROR: “/app/etc/” must exist for proper tool work.

Now enter sh patchfilename.sh again. If successful, you should see this message:

Applying Magento Patches on Windows Server

You can also see the patch log at /app/etc/applied.patches.list or view online http://magentostore.com/app/etc/applied.patches.list

Output from the patch…