PHP open_basedir

时间:2013-12-03 19:02:27

标签: php apache open-basedir

我收到以下PHP警告:

PHP Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//home/domain.nl/application/views/helpers/HeadLink.php) is not within the allowed path(s): (/usr/share/php:/home/domain.nl/:/usr/share/pear:/usr/sbin:/usr/bin:/bin:/tmp:/etc/phpmyadmin:/usr/lib/php4:/usr/lib/php5:/opt/ioncube/lib) in /home/domain.nl/library/Zend/Loader.php on line 186

为什么/usr/share/pear//home/domain.nl/application/views/helpers/..不在允许的路径/usr/share/pear内?

谢谢,

马亭

1 个答案:

答案 0 :(得分:1)

https://bugs.php.net/bug.php?id=37476

如果php超过5.2,则is_readable会对现有文件抛出此警告。

你的路径看起来像一个不存在的路径。我的意思是它应该以/ home /开头 domain.nl和/ usr / share / pear / part是无意的。 (也许include_path指令前置?)