Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B5431014B for ; Mon, 2 Mar 2015 19:11:20 +0000 (UTC) Received: (qmail 14506 invoked by uid 500); 2 Mar 2015 19:11:12 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 14469 invoked by uid 500); 2 Mar 2015 19:11:12 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 14458 invoked by uid 99); 2 Mar 2015 19:11:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2015 19:11:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bluethundr@gmail.com designates 209.85.217.177 as permitted sender) Received: from [209.85.217.177] (HELO mail-lb0-f177.google.com) (209.85.217.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2015 19:10:47 +0000 Received: by lbiv13 with SMTP id v13so13437606lbi.11 for ; Mon, 02 Mar 2015 11:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3BMQMTCW/au7e+GATQZ0BXyx5/zWJWP0JSdifHUxO48=; b=IbqAinqscxDBoii67IEWQkYlTPCTTnRzC4xwtkQfdlRypScPLvOsN7UgxporBj33tu JzeBUe3Fn7RI5eZyKGqEX7tVdnlb3tpvpwlQCOdDOeVhxvbpqe8DJw8JjSAMkMDarFwP LS4M3zj+xDXEL6bRNT+y4sRY+n8Dufbk1iQjZc+m77LO05MShkgXoPedqTt9VTR4f+7u o36LziHB4zF9MCCL1H6Srh8o76ocZjsBPtRJ6jbLd5JnWQwpPic1r3Sx/DrL/3ZmboBU 6WsAtOr/XJJFIak/p0M75l1rT8uN5eUx+9Ot19dImYdhJS8nJLy/d3CKJz6tlqX0k6CN D7dw== MIME-Version: 1.0 X-Received: by 10.112.225.137 with SMTP id rk9mr24833945lbc.11.1425323401484; Mon, 02 Mar 2015 11:10:01 -0800 (PST) Received: by 10.114.12.2 with HTTP; Mon, 2 Mar 2015 11:10:01 -0800 (PST) Date: Mon, 2 Mar 2015 14:10:01 -0500 Message-ID: Subject: set selinux context for cassandra to talk to website From: Tim Dunphy To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=001a11346214091ff9051052f73c X-Virus-Checked: Checked by ClamAV on apache.org --001a11346214091ff9051052f73c Content-Type: text/plain; charset=UTF-8 Hey all, Ok I have a website being powered by Cassandra 2.1.3. And I notice if selinux is set to off, the site works beautifully! However as soon as I set selinux to on, I am seeing the following 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'm just wondering how I can get SELinux to allow Cassandra to connect to the web server? Thanks Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B --001a11346214091ff9051052f73c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey all,

=C2=A0Ok I have a website being po= wered by Cassandra 2.1.3. And I notice if selinux is set to off, the site w= orks beautifully! However as soon as I set selinux to on, I am seeing the f= ollowing error:
Warning: require_once(/McFrazier/PhpBinaryCql/Cql= Client.php): failed to open stream: Permission denied in /var/www/jf-ref/in= cludes/classes/class.CQL.php on line 2 Fatal error: require_once(): Failed = opening required '/McFrazier/PhpBinaryCql/CqlClient.php' (include_p= ath=3D'.:/php/includes') in /var/www/jf-ref/includes/classes/class.= CQL.php on line 2

I'm just wondering how I can get = SELinux to allow Cassandra to connect to the web server?
<= font color=3D"#000000" face=3D"arial, helvetica, sans-serif">
Thank= s
Tim

--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B<= br>

--001a11346214091ff9051052f73c--