I am trying to install Patch 9767 but using following command

~$ sh PATCH_SUPEE-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh

But i got below error and patch is not install

: not found-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh: 7: PATCH_SUPEE-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh: 
PATCH_SUPEE-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh: 10: local: not in a function

So i am trying to install patch using php file using following code

$result = shell_exec('sh PATCH_SUPEE-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh');

but i got below error

ERROR: "/app/etc/" must exist for proper tool work.
  • have you uploaded patch file on then magento setup root folder? – Abdul Jun 5 '17 at 7:00
  • Yes PATCH_SUPEE-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh file is on magento root folder – Vaibhav Ahalpara Jun 5 '17 at 7:01
  • check your root path sh file permission. its need 777 – Monarch Jun 15 '17 at 12:22

use following command before.

sudo chmod +x sh PATCH_SUPEE-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh

And after use

./ patch file name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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