2013-08-16 33 views
11

更新我的软件包后出现错误。当试图启动我的网络服务器时,它会引发以下错误。在Ubuntu 13.04上更新Apache时出错(Raring Ringtail)

$ sudo service apache2 restart 
* Restarting web server apache2 [fail] 
* The apache2 configtest failed. 
Output of config test was: 
AH00526: Syntax error on line 84 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. 

和Apache错误日志(从文件/var/log/apache2/error.log):

[Sat Aug 17 01:30:03 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.17RC1 configured -- resuming normal operations 
[Sat Aug 17 01:41:38 2013] [notice] caught SIGTERM, shutting down 
[Sat Aug 17 03:10:11.132425 2013] [mpm_prefork:notice] [pid 4182] AH00163: Apache/2.4.6 (Ubuntu) PHP/5.5.1-2+debphp.org~raring+2 configured -- resuming normal operations 
[Sat Aug 17 03:10:11.143718 2013] [core:notice] [pid 4182] AH00094: Command line: '/usr/sbin/apache2' 
[Sat Aug 17 03:13:56.527245 2013] [mpm_prefork:notice] [pid 4182] AH00169: caught SIGTERM, shutting down 

什么事情做我必须做的恢复或修复我的服务器吗?

+0

显示有问题的配置文件... – mnagel

+0

也:什么是Apache的版本前/更新后?包/文件从哪里来? – mnagel

+0

你有没有想过这个? –

回答

26

替换apache2.conf:

LockFile /var/lock/apache2/accept.lock 

Mutex file:${APACHE_LOCK_DIR} default 
+1

感谢您的修复....为什么这是必要的 - 什么变化,使这种修复程序必要? – triple

+0

我在这里找到了一些信息:[http://docs.cpanel.net/twiki/bin/view/EasyApache/Apache/Apache24Issues]“Apache已经将AcceptMutex,LockFile,RewriteLock,SSLMutex,SSLStaplingMutex和WatchdogMutexPath指令替换为单个Mutex指令“。 – willoller

3

其实,最好是能够将信号。在Unix系统下,它速度更快,资源更少。

,期权就是这样的:

Mutex sem