[英]Codeigniter bad system folder path
我已经将CodeIgniter安装到/usr/share/pear/codeigniter
。 如果我在应用程序的index.php
$system_path = '/usr/share/pear/codeigniter/system';
它一切正常。
但是当我mount --bind
或复制到/pub/codeigniter
并将$system_path
设置$system_path
/pub/codeigniter/system
,它不起作用,CI显示错误消息:
Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php
权限:
$ ls -ld /usr/share/pear/codeigniter/{,*}
drwxr-xr-x 4 root root 4096 febr 17 13.07 /usr/share/pear/codeigniter/
drwxr-xr-x 15 root root 4096 febr 17 13.07 /usr/share/pear/codeigniter/application
-rw-r--r-- 1 root root 6357 febr 17 13.07 /usr/share/pear/codeigniter/index.php
drwxr-xr-x 8 root root 4096 febr 17 13.07 /usr/share/pear/codeigniter/system
$ ls -ld /pub/codeigniter/{,*}
drwxr-xr-x 4 root root 4096 júl 15 13.20 /pub/codeigniter/
drwxr-xr-x 15 root root 4096 febr 17 13.07 /pub/codeigniter/application
-rw-r--r-- 1 root root 6357 febr 17 13.07 /pub/codeigniter/index.php
drwxr-xr-x 8 root root 4096 júl 15 13.20 /pub/codeigniter/system
我认为PHP的is_dir
函数失败,但我不知道为什么。
有什么建议吗?
我的错:在/etc/php/php.ini
应将/pub
添加到open_basedir
的列表中,重新启动Webserver,一切都会好起来。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.