最新版本的PHP及其来自DotDeb的相关软件包和最新版本的Apache2.4似乎存在缺陷。
PHP 5.5.9,可以通过默认的Mint包获得。没有错误,我可以让phpinfo()在浏览器中正确地显示结果。当我升级到DotDeb的最新版本(5.5.16)并进行相关的Apache2包升级时,我在服务器重新启动时得到以下信息:
$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: undefined symbol: unixd_config
Action 'configtest' failed.
The Apache error log may have more information.尽管错误输出给出了建议,但错误日志并没有说明这一点。还请注意,除了升级PHP版本和自动包含的Apache包之外,没有什么改变。
在其他地方寻找解决方案时,我发现以下内容使它看起来像一个已知的bug (这里和这里)。
考虑到Mint始终是Ubuntu背后的一两个版本,我是否有办法将Apache 2本身升级到最新版本,据推测,该版本有bug修复呢?指的是包裹回购,还是类似的东西?
发布于 2014-09-06 00:01:47
进一步的研究和与同事的讨论清楚地表明,dotdeb的PHP版本是针对Apache2.2编译的。显然,2.4.x版本没有使用unixd_config符号。
编辑:我的一位同事给我看了这个PPA这招。我现在更新了Apache2.4和PHP 5的最新版本。
https://stackoverflow.com/questions/25555511
复制相似问题