Re: Migration from php4 to php 5 open_basedir directive.
| From: | Craig Lewis | Date: | Mon, 14 Mar 2005 22:42:20 +0000 |
| Subject: | Re: Migration from php4 to php 5 open_basedir directive. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210710@lists.php.net to get a copy of this message | ||
The files in question are 'within' the open_basedir directive.
To explain further/better
within virtualhost,
php_admin_value open_basedir /www/htdocs/midwifefinder.com/site
and...
/www/htdocs/midwifefinder.com/site/index.php contains
=======
<?php
require_once("includes/app.php");
========
which is /www/htdocs/midwifefinder.com/site/includes/app.php and this file contains....
===========
<?php
// base includes, don't change
require_once('config/_config.inc.php'); // config
===========
which is /www/htdocs/midwifefinder.com/site/includes/config/_config.inc.php
but I have tried this with simple file names and a simpler structure, the contents of add.php is
parsed, and the contents of config/_config.php is never parsed.
why not just add the necessary directories to the open_basedir setting (I'm guessing it can take multiple dirs because the error says 'allowed path(s)')? e.g.: /usr/local/pkg/php/php-5.0.2//lib/php/config/_config.inc.php