C
chickenbak
Guest
I am running into a little problem with includes and open_basedir.
This is the error that I am getting.
It works beautifully without open_basedir on...now here is the key...it seems that by utilizing the includes directory, it triggers open_basedir to kick it back...even though /usr/share/pear is within the include AND the open_basedir.
Question is...without actually going in and mandating the include be /usr/share/pear/symfony/symfony/pear.php (that defeats the purpose of the include) is there any way to make open_basedir "like" the include request...or am I getting this all wrong?
This is the error that I am getting.
Code:
[client x] PHP Warning: main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/php/includes/symfony/symfony/pear.php) is not within the allowed path(s): (/var/www/vhosts/twisi.com:/tmp:/usr/share/pear) in /var/www/vhosts/twisi.com/symfonyapps/test/myapp/config/config.php on line 16
[client x] PHP Warning: main(symfony/symfony/pear.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /var/www/vhosts/twisi.com/symfonyapps/test/myapp/config/config.php on line 16
[client x] PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'symfony/symfony/pear.php' for inclusion (include_path='.:/php/includes:/usr/share/pear') in /var/www/vhosts/twisi.com/symfonyapps/test/myapp/config/config.php on line 16
[client x] PHP Fatal error: Uncaught exception 'Exception' with message 'Unable to find symfony librairies' in /var/www/vhosts/twisi.com/symfonyapps/test/myapp/config/config.php:18\nStack trace:\n#0 /var/www/vhosts/twisi.com/symfonyapps/test/myapp/config/config.php(18): unknown()\n#1 /var/www/vhosts/twisi.com/symfonyapps/test/web/index.php(8): require_once('/var/www/vhosts...')\n#2 {main}\n thrown in /var/www/vhosts/twisi.com/symfonyapps/test/myapp/config/config.php on line 18
It works beautifully without open_basedir on...now here is the key...it seems that by utilizing the includes directory, it triggers open_basedir to kick it back...even though /usr/share/pear is within the include AND the open_basedir.
Question is...without actually going in and mandating the include be /usr/share/pear/symfony/symfony/pear.php (that defeats the purpose of the include) is there any way to make open_basedir "like" the include request...or am I getting this all wrong?