网站迁移后,将不再工作。空白的php页面。有什么想法吗?

网站迁移后,将不再工作。空白的php页面。有什么想法吗?,php,ubuntu,web,migration,Php,Ubuntu,Web,Migration,我打开了错误屏幕,但是错误只是警告,所以没有什么重要的 我在websites文件夹中添加了一个.html文件,其中包含一些文本,如“yes it works” 这是显示的。所以它应该是。。。。我没有任何想法了 迁移是从UbuntuServer10.10迁移到Ubuntu12.04服务器,新安装的。 我安装了一切(LAMPOFC)。。。例如,PHP Myadmin正在工作,我的MYSQL数据库也在工作。我还可以在每个网页文件夹中显示info.php页面 我有另一个网站在apache2服务器上运行

我打开了错误屏幕,但是错误只是警告,所以没有什么重要的

我在websites文件夹中添加了一个.html文件,其中包含一些文本,如“yes it works” 这是显示的。所以它应该是。。。。我没有任何想法了


迁移是从UbuntuServer10.10迁移到Ubuntu12.04服务器,新安装的。 我安装了一切(LAMPOFC)。。。例如,PHP Myadmin正在工作,我的MYSQL数据库也在工作。我还可以在每个网页文件夹中显示info.php页面

我有另一个网站在apache2服务器上运行,运行良好

我没有主意了。任何帮助都会很快得到提升

提前谢谢

Deprecated: Function set_magic_quotes_runtime() is deprecated in /data/xxxx/www/index.php on line 11
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/DB.php on line 311 
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/DB.php on line 385 
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/DB.php on line 923 
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/HTML/AJAX/Server.php on line 161 
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/HTML/AJAX.php on line 612 
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/HTML/AJAX/Serializer/JSON.php on line 46 
Warning: include_once(../pear/Net/Socket.php): failed to open stream: No such file or directory in /data/xxxx/www/pear/Net/SMTP.php on line 25 
Warning: include_once(): Failed opening '../pear/Net/Socket.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /data/xxxx/www/pear/Net/SMTP.php on line 25 
Warning: include_once(PEAR.php): failed to open stream: No such file or directory in /data/xxxx/www/pear/Mail/mime.php on line 65 
Warning: include_once(): Failed opening 'PEAR.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /data/xxxx/www/pear/Mail/mime.php on line 65
Warning: include_once(../pear/Mail/mimePart.php): failed to open stream: No such file or directory in /data/xxxx/www/pear/Mail/mime.php on line 75
Warning: include_once(): Failed opening '../pear/Mail/mimePart.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /data/xxxx/www/pear/Mail/mime.php on line 75
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/Spreadsheet/Excel/Writer/Workbook.php on line 180
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/Spreadsheet/Excel/Writer/Workbook.php on line 189
Deprecated: Call-time pass-by-reference has been deprecated in /data/xxxx/www/modules/statistics/frontend.class.php on line 16
Deprecated: Call-time pass-by-reference has been deprecated in /data/xxxx/www/modules/users/frontend.class.php on line 19
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/DB/common.php on line 958
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/DB/common.php on line 1150
Notice: DB Error: connect failed in /data/xxxx/www/classes/registry.class.php on line 70

That'y my Error log.
下面是DB错误的代码:

function GetDbEngineService()
    {
            $conf = $this->conf;
            $type = $this->config['system']['db']['type'];
            $host = $this->config['system']['db']['host'];
            $user = $this->config['system']['db']['user'];
            $pass = $this->config['system']['db']['pass'];
            $db_name = $this->config['system']['db']['db_name'];

            $dsn = "$type://$user:$pass@$host/$db_name";
            $engine = DB::connect($dsn);
            $this->db_engine = $engine;

            if (DB::isError($engine)) {
                    user_error  ( $engine->getMessage());
                    exit();
            }

            $engine->query("set names utf8");
            return $engine;
    }

    function GetSettings()
这有用吗?因为我不是php的程序员教授

编辑:现在我修复了数据库问题,并且出现了这个错误(我认为警告和不推荐)

0

这可能是你问题的根源

由于某种原因,您无法连接到数据库


确保您的数据库服务器正在运行,并且您有权从新服务器进行连接

这是无法回答的,我们无法查看您的网站上发生了什么。您是否有错误日志?如果您看到了,请设置错误日志记录的最大级别。检查错误日志。我们也猜不到,至少发布警告打开错误日志并检查服务器错误日志从registry.class.php添加了关于数据库的部分。代码没有问题,您是否检查了数据库服务器是否正在运行,以及您是否有权从新服务器连接数据库在同一台计算机上,并且它正在工作。至少我可以从phpmyadmin访问并查看所有条目。您可以使用在php文件中配置的相同设置访问它吗?我从旧服务器转储了mysql文件。在这里修复。所以一切都应该是一样的。顺便说一句,这不是我的网页,我对这个话题是新手。那么如何检查呢?谢谢
Notice: Undefined variable: row in /data/xxxx/www/classes/web_logic.class.php on line 238 Deprecated: Function split() is deprecated in /data/xxxx/www/classes/web_interface.class.php on line 159 
Notice: Undefined index: special in /data/xxxx/www/classes/web_interface.class.php on line 162 Notice: Undefined variable: row in /data/xxxx/www/classes/web_logic.class.php on line 34 
Notice: Undefined variable: header in /data/xxxx/www/classes/web_logic.class.php on line 42 Notice: Undefined offset: 0 in /data/xxxx/www/classes/web_interface.class.php on line 56 
Notice: Undefined offset: 0 in /data/xxxx/www/classes/web_interface.class.php on line 60 Deprecated: Function split() is deprecated in /data/xxxx/www/classes/web_view.class.php on line 320 
Notice: Undefined index: ajax_action in /data/xxxx/www/classes/web_interface.class.php on line 132
Notice: DB Error: connect failed in /data/xxxx/www/classes/registry.class.php on line 70