We have the following setup:
- /var/www/public <-- DocumentRoot
- /var/www/functions <-- php Functions
- /var/www/config <-- php configurations
Via apache vhost configuration we open the basedir:
php_admin_value open_basedir "/var/www/functions/:/var/www/config/"
Now if I include a document under functions or config from public, that works as expected. But if I include a config from within functions that does not.
/var/www/public/index.php can include
/var/www/functions/test.php can't include
open_basedir restriction in effect. File(../config/config.php) is not within the allowed path(s): (/var/www/functions/:/var/www/config/) in /var/www/functions/test.php on line 1067
Any thoughts on this maybe?
Thanks and kind regards
If I include with full path it works, as in
include_once("/var/www/config/config.php"); instead of