codeIgniter项目负荷空白网页 [英] CodeIgniter project loads blank webpage

查看:150
本文介绍了codeIgniter项目负荷空白网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我已经在Mac OS X Lion的成功运行codeigniter项目。当试图在Ubuntu上运行同一个项目,要求本地主机/项目的结果在一个空白页,没有来源。

I have a codeigniter project that I have run successfully on Mac OS X Lion. When attempting to run the same project in ubuntu, requesting localhost/project results in a blank page with no source.

我添加的AllowOverride All来的apache.conf无济于事。我最新的策略是把一个模具()语句在战略要地的指数包含的文件,试图找到其中code未能就行了。通过这种方法,我在系统/核心/ codeIgniter.php已经找到了前行的模具声明$ CI =新的$类();执行,而一个后(和presumably所有随后code)没有。

I've added AllowOverride All to apache.conf to no avail. My latest strategy has been to put a die() statement in strategic places in the index and included files, trying to find the line on which the code fails. Through this method, I've found in system/core/CodeIgniter.php that a die statement before the line "$CI = new $class();" executes, while one after it (and presumably all ensuing code) doesn't.

我能做些什么信息来帮助我在本地运行这个项目?

What can I do with this information to help me run this project locally?

感谢您!

推荐答案

我有同样的空白页时,我开始与CI的工作。

I had the same blank page when I started working with CI.

对于我来说,这只是我忘了我的机器上安装MySQL。因为在系统文件,数据库连接是由一个@pceded $ P $你没有得到错误,所以不显示任何错误。

For me, it was just that I forgot to install mySQL on my machine. You don't get errors because in the system files, the database connection is preceded by a "@" so no errors are displayed.

如果这不是问题,请检查您的PHP版本,或尝试添加一个phpinfo()函数中的index.php文件。

If this is not the problem, check your version of PHP, or try to add a phpinfo() in the index.php file.

这篇关于codeIgniter项目负荷空白网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆