关于nginx网站的问题

2013-11-15 17:41:37 +08:00
 gouera
同样的内容,在6.2的服务器上面就能访问,php是5.2.17的。
然后我把内容放到5.5的服务器上面去,php是5.3.6的。
就报以下的错误了。 这个是PHP方面的问题还是NGINX设置的问题啊?
trict Standards: Non-static method ECMall::startup() should not be called statically in /usr/local/nginx/html/index.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/nginx/html/eccore/controller/app.base.php on line 141

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/nginx/html/includes/ecapp.base.php on line 185

Strict Standards: Declaration of FrontendApp::jslang() should be compatible with that of ECBaseApp::jslang() in /usr/local/nginx/html/app/frontend.base.php on line 551

Strict Standards: Declaration of Message::display() should be compatible with that of FrontendApp::display() in /usr/local/nginx/html/eccore/controller/message.base.php on line 379
3222 次点击
所在节点    Linux
3 条回复
SAGAN
2013-11-15 19:23:52 +08:00
6.2 5.5是什么?

把"报错"的服务器php.ini里error_reporting的E_STRICT和E_DEPRECATED去掉
shiny
2013-11-15 21:00:43 +08:00
PHP 的写法有点问题,没有适应新版本,解决方法用楼上的就行了,或者能改改更佳。
gouera
2013-11-16 08:14:52 +08:00
@SAGAN 谢谢, 6.2是centos的版本。。。5.5的rh。。
这种错误和nginx的配置没有关系吧,
php测试页面已经能显示了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/89430

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX