I'm having this problem in PHP using exec():

sh: CutyCapt: Permission denied

So, how do I give permission to the apache user or www-data user to execute CutyCapt?

link|improve this question
feedback

2 Answers

Use chmod to add execute permission:

chmod +x /path_to_CutyCapt
link|improve this answer
feedback
  • Every time you want to execute a script you should add excecute permission

  • chmod +x /path/name/of/your/script

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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