【问题标题】:Wordpress XAMPP Apache wont startWordpress XAMPP Apache 无法启动
【发布时间】:2020-10-18 17:45:36
【问题描述】:

我是一名刚开始的学生,如果我在发布此内容时出现任何错误,请告诉我,如果我在帖子中做错了什么。

问题是在 XAMPP 控制面板中启动 apache。它说试图启动 apache 服务器,但它永远不会启动。Screen of XAMPP

我已经卸载了 Skype,我也卸载了 AVAST,因为我在下面显示的日志文件中看到了 AVAST。

每次我重新启动安装了 XAMPP 和 wordpress 的笔记本电脑时,都会出现此问题。当我进行全新安装时,一切正常,直到我重新启动。

我会把 apache 的日志放在这里,我希望我做对了,它不会变成一堵文字墙,如果我把帖子搞砸了,很抱歉:)

这是访问日志:

::1 - - [26/Jun/2020:15:17:35 +0200] "GET /wordpress/wordpress/HTTP/1.1" 200 4232 "http://localhost/wordpress/internets-historia/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"

::1 - - [26/Jun/2020:15:17:36 +0200] "GET /wordpress/wp-content/cache/jch-optimize/css/3b4d09a8edeadd78829ce5122a3160a8.css HTTP/1.1" 200 3485 " http://localhost/wordpress/wordpress/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"

::1 - - [26/Jun/2020:15:22:35 +0200] “-” 408 - “-” “-” 10.0.0.15 - - [27/Jun/2020:03:23:25 +0200] "GET / HTTP/1.1" 302 - "-" "avast! Antivirus" 10.0.0.15 - - [27/Jun/2020:03:23:25 +0200] "GET /dashboard/ HTTP/1.1" 200 7576 "-" "avast! Antivirus" 10.0.0.15 - - [27/Jun/2020:03:23:25 +0200] “GET / HTTP/1.1”302 - 10.0.0.15 - - [27/Jun/2020:03:23:25 +0200] “GET /dashboard/HTTP/1.1”200 7576 10.0.0.15 - - [27/Jun/2020:03:23:34 +0200] "GET /HNAP1/ HTTP/1.1" 404 1053 "-" "avast! Antivirus"

错误日志不包含与问题相关的任何内容。 并且 php.error 日志不存在。 我的猜测是 apache 一直是这个问题,但我现在不知道如何解决它,因为我卸载了 AVAST 并且 apache 仍然无法启动。

我检查了 netstats,没有程序在使用端口 80。

正如我所说,我是新手,所以如果这篇文章缺少重要信息,请让我知道我需要包含什么。此外,我已经搜索并尝试了我可以在 stackoverflow 和其他一些 youtube 视频等上找到的所有解决方案。我也遇到了其他帖子似乎有同样的问题,在我卸载 AVAST 后它就消失了:

12:17:01 [Apache] Attempting to start Apache app...
12:17:01 [Apache] Status change detected: running
12:17:02 [Apache] Status change detected: stopped
12:17:02 [Apache] Error: Apache shutdown unexpectedly.
12:17:02 [Apache] This may be due to a blocked port, missing dependencies,
12:17:02 [Apache] improper privileges, a crash, or a shutdown by another method. 
12:17:02 [Apache] Press the Logs button to view error logs and check
12:17:02 [Apache] the Windows Event Viewer for more clues
12:17:02 [Apache] If you need more help, copy and post this
12:17:02 [Apache] entire log window on the forums

【问题讨论】:

  • 检查日志目录中的 httpd.log。也去bin目录运行httpd.exe -t 命令共享输出。
  • 我在任何地方都找不到 httpd.log(搜索了整个笔记本电脑) 在 cmd 中运行 httpd.exe -e 会给我这个输出: httpd.exe: Syntax error on line 74 of c:/xampp/apache/ conf/httpd.conf:无法将模块/mod_access_compat.so 加载到服务器中:找不到模块。也非常感谢您抽出宝贵的时间,对不起,我太没用了:)

标签: php wordpress apache xampp


【解决方案1】:
httpd.exe: Syntax error on line 74 of c:/xampp/apache/conf/httpd.conf: Cannot load modules/mod_access_compat.so into server: Cant find the module

确保“mod_access_compat.so”存在于 c:/xampp/apache/modules 文件夹中。还要确保 ServerRoot 应该是相同的c:/xampp/apache。更多信息请参考Apache error: cannot load mod_access_compat.so

【讨论】:

  • 我确实有 mod_acces_compat.so 它应该在的地方。在第 39 行的 httpd.conf 中,它说: ServerRoot "C:/xampp/htdocs" 在第 37 行上面定义 SRVROOT "C:/xampp/htdocs" 这就是安装 xampp 的位置,直接在 c:
  • 确认您机器上的模块文件夹路径?
  • 对不起,作为一个工具,mod_access_compat.so 的路径是:xampp/apache/modules 我的 serverRoot 路径应该是:ServerRoot "C:/xampp/apache/modules" 吗?或 C:/xampp/apache" ?
  • 那么应该是C:/xampp/apache。它将从C:/xampp/apache 中获取 conf 和 conf.d,conf.moudle.d 文件夹
  • 哇,好用,非常感谢!
猜你喜欢
  • 1970-01-01
  • 2012-11-29
  • 2018-02-28
  • 1970-01-01
  • 2018-06-18
  • 2016-02-13
  • 2016-01-08
  • 2015-11-24
  • 2013-12-06
相关资源
最近更新 更多