Tell SELinux to Give Apache Execute Access to PHP Files Outside Document Root

后端 未结 2 1841
情歌与酒
情歌与酒 2020-12-11 18:46

I have a directory where shared PHP scripts are kept (the name is arbitrary, but it isn\'t /var/, /usr/, or anything that SELinux would have specific settings for):
/w

2条回答
  •  轮回少年
    2020-12-11 19:12

    I use this with the executable programs I need to run from my PHP scripts and Apache

    sudo chcon -v -t httpd_sys_script_exec_t my-executable
    

提交回复
热议问题