我对任何事情都还是个新手。所以如果你需要更多的信息,请告诉我。
到目前为止,我所做的:
我将一个网站从一台ubuntu 10.10服务器复制到另一台12.04 ubuntu服务器上。我还备份和恢复了MYSQL数据库。我配置了apache2 (目前仅在本地)来显示我的页面。我在3个端口上有3个页面,其他页面都可以工作,所以我可能正确地配置了apache2。起初,当我试图联系我的网站时,我只看到一个空白页面,所以我打开了错误屏幕。
如下所示,我将网站名称替换为xxxx:
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 这里我唯一理解的是:简单邮件传输协议(SMTP)
似乎有些数据没有正确复制。如何查看文件夹和子文件夹的excat大小?所以我至少可以比较一下:)提前谢谢。
任何帮助都会很快得到支持。
发布于 2013-08-15 21:28:07
set_magic_quotes_runtime()
只要去掉这个函数调用。
不建议通过引用将
的返回值赋值给
只需去掉&在语句中签名即可。
警告: include_once(PEAR.php):
你必须安装PEAR
发布于 2013-08-15 21:23:49
看起来你已经更改了PHP版本。很可能您的Ubuntu 10.10计算机运行的是PHP 5.2.x或PHP 5.3.x,而现在您的Ubuntu 12.04计算机运行的是PHP 5.4.x或PHP 5.5.x (可能性很小)。
你有两个真正的解决方案:
更新您的代码(推荐)
逐行更新您的代码并更正错误,您应该能够逐个研究这些错误并将http://php.net/用作资源。
降级你的php/mysql版本
您可以通过在终端中运行以下命令来检查Ubuntu10.10机器上的旧PHP版本:php -v;然后在12.04机器上执行相同的命令,看看您升级到了什么版本。
有很多关于在Linux上更改PHP版本的文档,因此我授权您进行这方面的研究。
您还需要将您的php.ini配置复制到新的安装中--从您的magic_quotes错误看,您很可能有一些旧的配置。
https://stackoverflow.com/questions/18253382
复制相似问题