apache 无法启动的原因检查

已完成

打开CMD 执行以下命令:

D:\SOFT\phpstudy\PHPTutorial\Apache\bin\httpd.exe -k start


报错:

系统找不到指定的文件。 : AH00436: No installed service named "Apache2.4".


然后执行命令安装Apache2.4

D:\SOFT\phpstudy\PHPTutorial\Apache\bin\httpd.exe -k  install -n "Apache2.4"

执行完提示错误信息:

The 'Apache2.4' service is successfully installed.Testing httpd.conf....Errors reported here must be corrected before the service can be started.
httpd.exe: Syntax error on line 512 of D:/SOFT/phpstudy/PHPTutorial/Apache/conf/httpd.conf: </IfModule> without matching <IfModule> section

提示我们配置文件的512行有不匹配的信息,打开配置文件


看到一堆垃圾,猜测是以前安装的某些插件,然后卸载了,导致他没有完全清理掉里边的配置项

解决方法,删掉多余的没有配对的</IfModule>即可

技术文章 2022-05-17 0 0

星星点灯3

  • 注册时间 : 2022-05-17 07:55:41
  • 邮箱地址 : mianhei@qq.com
  • 此页面用于展示用户的基本上资料信息

回帖 ( 0 )