[CentOS] SELinux kills Cassandra based website

Thu Mar 5 03:14:42 UTC 2015
Tim Dunphy <bluethundr at gmail.com>

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
/var/www/jf-ref/includes/classes/class.CQL.php on line 2 Fatal error:
require_once(): Failed opening required
'/McFrazier/PhpBinaryCql/CqlClient.php' (include_path='.:/php/includes') in
/var/www/jf-ref/includes/classes/class.CQL.php on line 2

I've tried performing a chcon -R command on both the /McFrazier and the
/var/www/jf-ref directories. But there's no change to the site being up.
Can I get some opinions on how to get this working under SELinux?

Thanks
Tim


-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B