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?
|
I'm having this problem in PHP using exec():
So, how do I give permission to the apache user or www-data user to execute CutyCapt? |
||||
|
|
|
Every time you want to execute a script you should add excecute permission:
|
||||
|
|
|
Unless you're using suPHP or the like, all PHP processes (scripts) are executed as the apache user. This means any binaries you wish to execute from PHP must be executable by that user, as well. What, exactly, does the error log say ? |
|||
|
|
|
You're going to need to set the user/owner to apache:apache or www-data:www-data depending on the user that Apache is running as. Once you know what the username is for the Apache process, type:
Once you've done that, you've changed ownership of that file to the Apache user. The next step is to make the script executable.
|
|||
|
|