【问题标题】:Error after updating Apache on Ubuntu 13.04 (Raring Ringtail)在 Ubuntu 13.04 上更新 Apache 后出错(Raring Ringtail)
【发布时间】:2013-08-19 09:55:47
【问题描述】:

更新我的软件包后出现错误。尝试启动我的网络服务器时,它会引发以下错误。

$ 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

我必须做些什么来恢复或修复我的服务器?

【问题讨论】:

  • 显示有问题的配置文件...
  • 还有:更新之前/之后的 apache 版本是什么?包/文件来自哪里?
  • 你有想过这个吗??
  • @sasivarmaKumar 运气好吗?

标签: apache ubuntu


【解决方案1】:

在 apache2.conf 中替换:

LockFile /var/lock/apache2/accept.lock

Mutex file:${APACHE_LOCK_DIR} default

【讨论】:

  • 感谢此修复....为什么这是必要的 - 哪些更改使此修复成为必要??
  • 我在这里找到了一些信息:[docs.cpanel.net/twiki/bin/view/EasyApache/Apache/…“Apache 已经用一个 Mutex 指令替换了 AcceptMutex、LockFile、RewriteLock、SSLMutex、SSLStaplingMutex 和 WatchdogMutexPath 指令。”
【解决方案2】:

实际上,最好使用信号量。在 Unix 系统下,它速度更快,使用的资源更少。

选项就是这样:

Mutex sem

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-07-10
    • 1970-01-01
    • 1970-01-01
    • 2014-03-19
    • 2013-09-09
    • 1970-01-01
    • 2013-08-24
    相关资源
    最近更新 更多