其他codeigniters,我将我的本地ci站点移动到媒体服务器上,我遇到系统和应用程序文件夹的位置问题。codeigniter安装 - 系统和应用程序文件夹的位置
服务器的结构如下:
../domains
/mysite.com
/html
HTML是我的域名的根。即,当我访问www.mysite.com时,我会去哪里。
我将ci系统文件夹(ci_system)放在域下。
由于html文件夹正在被一些“在建”文件使用,我在html下创建了一个名为'mysiteapp'的子文件夹,并将我的应用程序文件夹,idex.php,css,js文件夹放在那里。
,所以它看起来是这样的:
../domains
ci_system
/mysite.com
/html
/mysiteapp
/application
/css
/assets
/js
index.php
我编辑的index.php文件,使$ system_folder =“../../../ci_system”;
的问题是,当我访问该网站,我得到一个PHP错误:
警告:要求(../../../ ci_system /应用/配置/ constants.php) function.require]:未能打开流:没有这样的文件或目录在/nfs/c08/h04/mnt/xxxxxx/domains/ci_system/codeigniter/CodeIgniter.php线52
所以它看起来像ci_system文件夹正在定位,但CI仍在尝试将应用程序文件夹定位在ci_system文件夹之外。
我已经尝试指定应用程序文件夹的完整路径,但它仍尝试将2连接在一起。
我没有做过很多ci装置,我的本地装置在几个月前完成,我不记得它是一个痛苦。所以我不确定在哪里寻找解决这个问题。
希望有人能帮忙。
感谢
哎Designerfoo,我已经设置$ application_folder到许多不同的值,包括开始完整的绝对路径/什么情况是,CI保持串联$ system_folder与$ application_folder。这里是一个例子:$ system_folder =“/ nfs/c08/h04/mnt/xxxxxx/domains/ci_system”; $ application_folder =“/nfs/c08/h04/mnt/xxxxxx/domains/jugglerapp.com/html/jugglerapp/application”;错误是:警告:require(/nfs/c08/h04/mnt/xxxxxx/domains/ci_system//nfs/c08/h04/mnt/xxxxxx/domains/jugglerapp.com/html/jugglerapp/application/config/constants。 PHP)...注意//在ci_system之后。 – djeetee