Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63939 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67246 invoked from network); 16 Nov 2012 18:27:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2012 18:27:55 -0000 Authentication-Results: pb1.pair.com header.from=addw@phcomp.co.uk; sender-id=permerror Authentication-Results: pb1.pair.com smtp.mail=addw@phcomp.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain phcomp.co.uk designates 78.32.209.33 as permitted sender) X-PHP-List-Original-Sender: addw@phcomp.co.uk X-Host-Fingerprint: 78.32.209.33 freshmint.phcomp.co.uk Received: from [78.32.209.33] ([78.32.209.33:36237] helo=mint.phcomp.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/9A-08060-7A586A05 for ; Fri, 16 Nov 2012 13:27:54 -0500 Received: from addw by mint.phcomp.co.uk with local (Exim 4.72) (envelope-from ) id 1TZQdo-00048T-TC for internals@lists.php.net; Fri, 16 Nov 2012 18:27:48 +0000 Date: Fri, 16 Nov 2012 18:27:48 +0000 To: PHP internals Message-ID: <20121116182748.GZ31253@phcomp.co.uk> Mail-Followup-To: PHP internals MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: Parliament Hill Computers Ltd User-Agent: Mutt/1.5.20 (2009-12-10) Subject: Problem with php_value open_basedir and apache containers From: addw@phcomp.co.uk (Alain Williams) I have just run into this, there is a much earlier similar issue in Apache bugzilla where they refer the problem php: https://issues.apache.org/bugzilla/show_bug.cgi?id=24120 In the apache config file I have the something like the following in a virtual host definition: php_value open_basedir "/var/www/InternalFacing/:/usr/share/pear:/usr/local/php" php_value open_basedir "/var/www/InternalFacing/:/usr/share/pear:/usr/local/php:/var/somewhere/" A php script inside /var/www/InternalFacing/html/MyHidden cannot open files under /var/somewhere/. If I comment out the first 'php_value' (ie outside the container) it works ... but not if I leave it in. So: it seems that 'php_value open_basedir' does not interact properly with apache containers. I am using httpd 2.2.15 and php 5.3.3 on a Centos 6 system. Regards -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include