我已将 CodeIgniter 安装到/usr/share/pear/codeigniter
. 如果我在我的应用程序中设置index.php
$system_path = '/usr/share/pear/codeigniter/system';
它一切正常。
但是当我mount --bind
或复制到/pub/codeigniter
并设置$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
功能失败了,但我不知道为什么。
有什么建议吗?