VPS侦探论坛

 找回密码
 注册
查看: 4025|回复: 7

WeCenter 迁移到PHP7.0.7 lnmp1.3下出现500

[复制链接]
发表于 2017-6-27 23:37:37 | 显示全部楼层 |阅读模式

网站程序 WeCenter 3.1.9系统环境
操作系统Linux 2.6.32-642.6.2.el6.x86_64
PHP 版本7.0.7
MySQL 版本5.5.48


已经安装imagick.so

/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so

错误显示
An error occurred (500 Error)We're sorry, but a temporary technical error has occurred which means we cannot display this site right now.
You can try again by clicking the button below, or try again later.


服务器里,网站根目录下php_errors.log显示
[27-Jun-2017 14:37:29 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
[27-Jun-2017 14:38:09 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-6-28 09:27:20 | 显示全部楼层


https://lnmp.org/faq/addons.html
已经按照上面的文章安装了imagemagick的,/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so也是存在的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-6-28 10:14:48 | 显示全部楼层

这个500错误搞清楚了,不是imagemagick导致的,是PHP7下,不能放不存在的函数到代码里,之前有个统计函数,后来把函数注释了,但是引用函数的代码没有注释,在PHP5下没事,在PHP7下就出问题了。


但是现在还是有一个问题。下面这个错误也很奇怪,就显示了两次而已
服务器里,网站根目录下php_errors.log显示
[27-Jun-2017 14:37:29 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
[27-Jun-2017 14:38:09 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-6-28 10:15:56 | 显示全部楼层



同个服务器里,其他站点就有PNG GIF 无法自动转换成SVG而出现图标404错误的,呼叫军哥,这个是怎么回事
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-6-28 11:14:35 | 显示全部楼层

原帖由 yanqzh 于 2017-6-28 10:15 发表
同个服务器里,其他站点就有PNG GIF 无法自动转换成SVG而出现图标404错误的,呼叫军哥,这个是怎么回事
发现这个网站的PHP_errors.log里全是
[20-Mar-2017 15:47:07 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
[23-Mar-2017 01:01:41 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/memcached.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
[23-Mar-2017 01:01:41 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
[23-Mar-2017 01:02:51 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/memcached.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
[23-Mar-2017 01:02:51 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
[23-Mar-2017 01:03:10 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/memcached.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
[23-Mar-2017 01:03:10 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0

军哥运维代购:http://shop63846532.taobao.com/

发表于 2017-6-28 12:36:29 | 显示全部楼层

按提示是上面提示的imagick和memcached 扩展都没安装成功
 楼主| 发表于 2017-6-28 16:33:52 | 显示全部楼层

回复 6# 的帖子


安装不成功是否是应该不断提示?从日志里看,只是某段时间提示
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-6-28 19:25:10 | 显示全部楼层

回复 7# 的帖子


安装失败,安装扩展时就会有提示
是否不间断在错误日志中提示,可能在调用或重启时会有
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 22:16 , Processed in 0.027989 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表