PHP 版本更新出错

PHP 版本更新出错

我已经关注指示在将服务器上的 PHP 版本从 5.3 更新到 5.5
时,安装过程中出现 php5-common 依赖性错误。我已设法通过完全升级当前 apache 版本和 php 来修复依赖性错误,并从头开始安装它们。

现在我收到此错误:

* Starting web server apache2
*
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 55 of /etc/apache2/apache2.conf:
Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.

有问题的行包含以下内容:

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
# 
LockFile ${APACHE_LOCK_DIR}/accept.lock

注释掉该行会导致另一个错误:(缺少 httpd.conf 文件)

* Starting web server apache2
*
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 214 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.

创建一个空httpd.conf文件会产生另一个错误:

* Starting web server apache2
*
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 43 of /etc/apache2/mods-enabled/ssl.conf:
SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
Action 'configtest' failed.
The Apache error log may have more information.

请帮我解决这个问题。我的老板有点小气,在系统技术人员方面很吝啬。
所以请记住,您正在与一位对 Linux\Unix 系统了解极其有限的 PHP 开发人员交谈。

先感谢您。

相关内容