Displaying 2 results from an estimated 2 matches for "httpd_sys_content".
Did you mean:
httpd_sys_content_t
2015 Mar 05
1
SELinux kills Cassandra based website
...elinux permissions on that file:
[root at web1:~] #ls -Z /McFrazier/PhpBinaryCql/CqlClient.php
-rwxrw-rw-. apache apache system_u:object_r:default_t:s0
/McFrazier/PhpBinaryCql/CqlClient.php
So I tried giving apache access to that file using this command:
[root at web1:~] #semanage fcontext -a -t httpd_sys_content
/McFrazier/PhpBinaryCql/CqlClient.php
ValueError: Type httpd_sys_content is invalid, must be a file or device type
Seemed logical enough to me, but it doesn't work. I've been googling around
for a while to figure out how to get this to work. But no luck just yet.
If I do a semanage fconte...
2015 Mar 05
2
SELinux kills Cassandra based website
Hey all,
There's a website I help run that uses the Cassandra DB as its database. I
notice that if I run the web server in SELinux permissive mode, the site
works fine. But if I put it into enforcing mode, the site goes down with
this error:
Warning: require_once(/McFrazier/PhpBinaryCql/CqlClient.php): failed to
open stream: Permission denied in