The first time I ran the patch, I got

patching file .htaccess Hunk #1 FAILED at 207. It was the only file that had an issue. All the rest patched successfully.

I replaced with the stock .htaccess and .htaccess.sample, and ran the patch again. This time, new .htaccess issue:

Checking if patch can be applied/reverted successfully... /usr/bin/patch: **** Can't rename file /tmp/polM4FGJ to .htaccess : Permission denied ERROR: Patch can't be applied/reverted successfully.

I've checked all permissions, everything seems to be okay. Anyone run into this?

  • What is the output of 'ls -l .htaccess .' and 'id'
    – Willem
    Commented Oct 28, 2015 at 5:25
  • what operating system, and are you running the patch as the uid that owns the files in the magento installation?
    – STW
    Commented Oct 28, 2015 at 15:12

2 Answers 2


Please check the file permissions, issue seems to be that the file is not writable.
Change the file permissions and make it writable.


please refer below link is useful for your problem


  • Thank you. I've tried all those methods, with no change in result. I'll keep monitoring that forum.
    – Qozmiq
    Commented Oct 28, 2015 at 13:18

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.