Search code examples
phpapacheselinux

php permission denied on executing a C exe file


Im using Fedora 14 and tried to execute a C program inside a php script using the backtick operator.

It said permission denied, but it works for other bash commands, e.g. test.sh; it only contains ls -lrt .

Both test.sh and a.out have the permissions and both belongs to the apache users.

Note: It runs fine on the command line and I get permission denied when accessing from a browser.


Solution

  • Thanks for the answers. I fixed it by disabling SELinux.