我只是按照一些步骤在我的生产服务器上运行这个新版本的PHP,之后我就无法访问任何站点了。
我检查了一下,唯一修改的配置文件是 etc/php.ini所以关于 Apache 的任何内容都不应该改变。
我的伺服器是 CentOS 5.11。
当我使用:
php -v
我得到这个结果:
PHP Warning: PHP Startup: ffmpeg: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
PHP 5.6.19 (cli) (built: Mar 3 2016 08:14:44)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
谢谢
我认为这可能已经在Stackoverflow的其他地方解决了:
Apache is-is-can-can-to-initialize-module-why-of-modules-and-phps-api-dont
这可能会有所帮助。