1

将我的项目从 Windows 移动到 Linux 后,我得到的只是一个空白页当我查看日志时,我收到此错误:

[Wed Oct 03 22:59:14 2012] [warn] [client MY.IP.] mod_fcgid: stderr: PHP Fatal error:  Class 'Public_Controller' not found in /home/clients/client13/web32/web/application/modules/welcome/controllers/welcome.php on line 11

服务器正在运行 Fast-CGI(我也尝试过 Mod-PHP 以防万一)

文件第 10 到 16 行:

class Welcome extends Public_Controller
{
function Welcome()
{
parent::__construct();
}
4

1 回答 1

0

Linux 在文件命名约定方面是区分大小写的。仔细检查控制器上的外壳。具体来说,确保您的文件被调用Public_Controller.php

于 2012-10-04T03:45:09.067 回答