wrong open_basedir warning
| From: | Markus Falb | Date: | Wed, 27 Mar 2013 16:00:21 +0000 |
| Subject: | wrong open_basedir warning | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-320702@lists.php.net to get a copy of this message | ||
in my test.php I put
file_exists('/usr/share/wordpress/wp-config.php');
this throws an error
Warning: file_exists(): open_basedir restriction in effect.
File(/usr/share/wordpress/wp-config.php) is not within the allowed
path(s): (/var/www/blog:/usr/share/wordpress) in
/var/www/blog/www/test.php on line 2
The configuration of my apache virtual host says
php_admin_value open_basedir '/var/www/blog:/usr/share/wordpress'
What is going on?
/usr/share/wordpress/wp-config.php is definitily within
/usr/share/wordpress, isnt it?
--
Markus Falb