PHP Warning: is_readable(): open_basedir restriction in effect. File(/usr/bin/../../lib/autoload/sfCoreAutoload.class.php) is not within the allowed path(s): (/var/www/html/) in /usr/bin/symfony on line 20
Warning: is_readable(): open_basedir restriction in effect. File(/usr/bin/../../lib/autoload/sfCoreAutoload.class.php) is not within the allowed path(s): (/var/www/html/) in /usr/bin/symfony on line 20
PHP Warning: is_dir(): open_basedir restriction in effect. File(/usr/share/pear/symfony) is not within the allowed path(s): (/var/www/html/) in /usr/bin/symfony on line 30
Warning: is_dir(): open_basedir restriction in effect. File(/usr/share/pear/symfony) is not within the allowed path(s): (/var/www/html/) in /usr/bin/symfony on line 30
PHP Fatal error: Uncaught exception 'Exception' with message 'Unable to find symfony libraries' in /usr/bin/symfony:32
Stack trace:
#0 {main}
thrown in /usr/bin/symfony on line 32
Fatal error: Uncaught exception 'Exception' with message 'Unable to find symfony libraries' in /usr/bin/symfony:32
Stack trace:
#0 {main}
thrown in /usr/bin/symfony on line 32
如上述报错,安装symfony时,symfony安装后/var/www/html中不允许包含。
open_basedir在配置中是/var/www/html的话,symfony用pear安装的,路径在/usr下。
open_basedir='/var/www/html/:/usr/share/pear/';回复<aclass='referer'target='_blank'>@姚善良:open_basedir用于限制PHP脚本所能操作的目录树,Linux用冒号(:)分隔路径,Windows用分号(;)分隔路径.中间是用冒号分开吗?急,在线等Thanks
改了php.ini中的open_basedir仍报错open_basedirrestrictionineffect,请看这篇文章:<arel="nofollow">http://www.youyong.top/article/1158ec559d14c
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。