空白屏幕与CodeIgniter [英] Blank Screen with CodeIgniter

查看:122
本文介绍了空白屏幕与CodeIgniter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将一个网站移动到生产服务器,而且一次工作的CodeIgniter安装现在返回一个空白屏幕。

I've just moved a site across to a production server, and a once working CodeIgniter installation now returns a blank screen. I believe it is due to whitespace, but how are you supposed to find something like that?

推荐答案

要检查的内容:


  • 在config.php中,确保您的 $ config ['base_url']

  • 您是否可以复制您的.htaccess?

  • 您是否在两台机器上都有相同的PHP版本?

  • 您的$ db ['default'] ['hostname']的值是什么?
  • 如果您的答案是肯定的, >
  • 您的本地和生产服务器中是否具有相同的数据库设置?可能与主机名,用户名,密码和数据库名称不同

  • Inside config.php, make sure your $config['base_url'] is set properly
  • Were you able to copy your .htaccess as well?
  • Do you have the same PHP versions in both machines? If your answer is yes, i'll ask you again: Are you sure?
  • What is the value of your $db['default']['hostname']?
  • Do you have the same database setup in your local and production server? There could be differences with the hostname, username, password and database name

您可以执行的其他操作:

Other things you can do:


  • $ db ['default'] ['db_debug'] 设置为 / code>

  • 在生产服务器中部署新的CodeIgniter安装并检查是否可以看到

  • 页面,部署一个包含文本的PHP文件,并告诉我们您看到的内容

  • Set $db['default']['db_debug'] to TRUE
  • Deploy a fresh CodeIgniter installation in your production server and check if you can see something
  • If you still see a blank page, deploy a single PHP file with text in it and tell us what you see

这篇关于空白屏幕与CodeIgniter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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