将CodeIgniter文件从WAMP迁移到LAMP的正确方法是什么?


What is the correct way in Migrating CodeIgniter files from WAMP to LAMP?

我使用CodeIgniter 2.1.3PHP 5.4.24EasyPHP 14.1WAMP上制作了一个web应用程序。现在,我想用这个LAMP教程Ubuntu 12.04 LTS上转移我的服务器。一切都很好,除了我的web应用程序停止工作。它可以解析简单的脚本,比如创建新的CI文件。我不知道出了什么问题。

日志显示:

The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.

HTTP/1.0 500 Internal Server Error 15ms

您的页面可能有错误。您可以通过向主索引文件顶部添加以下行来显示它们,无论是index.php还是backend.php

error_reporting(E_ALL);
ini_set('display_errors', 1);

另外,检查您是否在apache配置中启用了mod_rewrite