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. Thanksimage

有帮助吗?

解决方案

You can allow it by using setsebool -P httpd_unified=1

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

Otherwise you can use

getsebool -a | grep httpd

To get a list of httpd-related EeLinux options and tweak to your personal taste.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top