【问题标题】:debian wheezy to jessie apache start\cloudflare issuedebian wheezy 到 jessie apache start\cloudflare 问题
【发布时间】:2015-10-06 15:39:35
【问题描述】:

我 apt-get dist-upgraded 从 Debian Wheezy 到 Jessie 并为我的 LAMP 堆栈保留了我的配置文件,现在我在尝试启动 Apache 时遇到以下错误:(我完全被难住了。为什么 apache 会\cloudflare 模块没有加载?)

root@county:~# /etc/init.d/apache2 restart
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
failed!

root@county:~# systemctl status apache2.service -l
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Thu 2015-07-16 20:58:34 EDT; 21s ago
Process: 2166 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Jul 16 20:58:34 county systemd[1]: Starting LSB: Apache2 web server...
Jul 16 20:58:34 county apache2[2166]: Starting web server: apache2 failed!
Jul 16 20:58:34 county apache2[2166]: The apache2 configtest failed. ... (warning).
Jul 16 20:58:34 county apache2[2166]: Output of config test was:
Jul 16 20:58:34 county apache2[2166]: apache2: Syntax error on line 244 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/cloudflare.load: Cannot load /usr/lib/apache2/modules/mod_cloudflare.so into server: /usr/lib/apache2/modules/mod_cloudflare.so: undefined symbol: ap_log_rerror
Jul 16 20:58:34 county apache2[2166]: Action 'configtest' failed.
Jul 16 20:58:34 county apache2[2166]: The Apache error log may have more information.
Jul 16 20:58:34 county systemd[1]: apache2.service: control process exited, code=exited status=1
Jul 16 20:58:34 county systemd[1]: Failed to start LSB: Apache2 web server.
Jul 16 20:58:34 county systemd[1]: Unit apache2.service entered failed state.

root@county:~# journalctl -xn
-- Logs begin at Thu 2015-07-16 20:51:26 EDT, end at Thu 2015-07-16 20:59:02 EDT. --
Jul 16 20:59:01 county CRON[2208]: pam_unix(cron:session): session closed for user root
Jul 16 20:59:01 county CRON[2206]: pam_unix(cron:session): session closed for user root
Jul 16 20:59:01 county CRON[2209]: pam_unix(cron:session): session closed for user root
Jul 16 20:59:01 county CRON[2211]: pam_unix(cron:session): session closed for user root
Jul 16 20:59:01 county CRON[2203]: pam_unix(cron:session): session closed for user root
Jul 16 20:59:01 county CRON[2201]: pam_unix(cron:session): session closed for user root
Jul 16 20:59:01 county CRON[2207]: pam_unix(cron:session): session closed for user root
Jul 16 20:59:02 county CRON[2202]: pam_unix(cron:session): session closed for user root
Jul 16 20:59:02 county CRON[2200]: pam_unix(cron:session): session closed for user root
Jul 16 20:59:02 county CRON[2204]: pam_unix(cron:session): session closed for user root

Cloudflare.load 包含以下内容:

LoadModule cloudflare_module  /usr/lib/apache2/modules/mod_cloudflare.so

mod_cloudflare.so 来自https://github.com/cloudflare/mod_cloudflare

更新:问题远不止 Cloudflare。

 Jul 16 22:27:41 county apache2[1674]: apache2: Syntax error on line 265 of /etc/apache2/apache2.conf: Could not open configuration...irectory
 Jul 16 22:27:41 county apache2[1674]: Action 'configtest' failed.

 Jul 16 22:27:41 county apache2[1674]: apache2: Syntax error on line 265 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/: No such file or directory

 Jul 16 22:29:18 county apache2[1963]: AH00526: Syntax error on line 89 of /etc/apache2/apache2.conf:
 Jul 16 22:29:18 county apache2[1963]: Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration

我的 apache2.conf(从 Wheezy 升级到 Jessie 后,我什至无法获得版本号 [最新版本],因为我收到有关此配置的错误消息):

http://paste.debian.net/283153/

【问题讨论】:

    标签: apache debian cloudflare


    【解决方案1】:

    您是否修改 /etc/apt/sources.list.d/cloudflare-main.list 用 jessie 替换 wheezy 词? 如果您不更改此文件,您将获得旧稳定版的软件包构建,而不是当前稳定版 debian 版本。 所以,把 jessie 而不是 wheezy 放在 /etc/apt/sources.list.d/cloudflare-main.list 上,运行

    apt-get update
    

    然后

    apt-get upgrade
    

    【讨论】:

      猜你喜欢
      • 2016-09-07
      • 1970-01-01
      • 1970-01-01
      • 2021-09-01
      • 1970-01-01
      • 2014-07-17
      • 2016-08-25
      • 1970-01-01
      • 2015-02-09
      相关资源
      最近更新 更多