PHP exec Java cmd failed with permission denied

本小妞迷上赌 提交于 2019-11-29 12:12:57

I had a similar issue. I duplicated it on the RedHat 7 (installed on the Amazon EC2).
Only when selinux was switched to the permissive mode - the issue was fixed.

  1. Sudo or login as root
  2. To check the status: $ sestatus or $ getenforce.
  3. To turn it off:
    • temporary: $ setenforce 0.
    • permanently: edit /etc/selinux/config file

After deeper research, it looks that it is better to enable "apache to use the memory" and not turn off the mode:
setsebool -P httpd_execmem 1

More info here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!