SELinux的prevented的httpd(usr / sbin目录/的httpd)写访问到/ var / www / html等/预订/ templates_c [英] SELinux prevented httpd(usr/sbin/httpd) write access to /var/www/html/bookings/templates_c
问题描述
我使用它使用 Smarty的
模板引擎的框架。它工作正常在Windows,但是当我试图在LAMP服务器上运行它,我得到了像 SELinux的检测可疑行为信息系统
上。整个错误消息,我重视。请指导我该怎么做。感谢
I am using a framework which uses Smarty
template engine. It works fine in Windows, but when I tried to run it in LAMP server, I got a message like SELinux has detected suspicious behaviour on your system
. The whole error message i have attached. Please guide me what to do. Thanks
推荐答案
您可以通过使用允许它 setsebool -P httpd_unified = 1
You can allow it by using setsebool -P httpd_unified=1
普通SELinux配置HTTP与PHP工作或多或少正确的是:
Normal SELinux settings for http to work with PHP more or less properly are:
setsebool -P httpd_enable_cgi on
setsebool -P httpd_unified on
setsebool -P httpd_builtin_scripting on
否则,您可以用
getsebool -a | grep httpd
要获得的httpd的相关EeLinux选项列表和调整您的个人品味。
To get a list of httpd-related EeLinux options and tweak to your personal taste.
这篇关于SELinux的prevented的httpd(usr / sbin目录/的httpd)写访问到/ var / www / html等/预订/ templates_c的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!