繁体   English   中英

Codeigniter错误的系统文件夹路径

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM