Php Codeigniter错误的系统文件夹路径

Php Codeigniter错误的系统文件夹路径,php,linux,codeigniter,codeigniter-2,Php,Linux,Codeigniter,Codeigniter 2,我已经在/usr/share/pear/CodeIgniter中安装了CodeIgniter。如果我在我的应用程序的index.php $system_path = '/usr/share/pear/codeigniter/system'; 一切都很好 但当我装载时——绑定或复制到/pub/codeigniter,并将$system\u path设置为/pub/codeigniter/system,则无法工作,CI显示错误消息: Your system folder path does not

我已经在
/usr/share/pear/CodeIgniter
中安装了CodeIgniter。如果我在我的应用程序的
index.php

$system_path = '/usr/share/pear/codeigniter/system';
一切都很好

但当我装载时——绑定或复制到
/pub/codeigniter
,并将
$system\u 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\u basedir
的列表中,重新启动Web服务器,一切都会好起来。

你试过调用
is\u dir
自己检查吗?在
索引中。php
有一个
is\u dir
检查:
变量转储(is\u dir($system\u path))
打印
bool(false)
$system\u path
存储正确的值(
echo$system\u path
打印良好的输出)。