进入Apache24的bin目录运行
httpd.exe -w -n "Apache2.4" -k start
查看错误信息

发现httpd.conf配置出现问题打开httpd.conf进到547删除和PHPINIDir那两行
再次运行
httpd.exe -w -n "Apache2.4" -k start

再次进入httpd.conf文件找到ServerName 添加
ServerName localhost:9090

然后再启动Apache就成功了。
解决Apache2.4启动问题
本文详细介绍了如何解决Apache2.4服务器启动时遇到的httpd.conf配置问题,包括删除PHPINIDir配置行、修改ServerName设置等步骤,最终实现Apache服务器的成功启动。
进入Apache24的bin目录运行
httpd.exe -w -n "Apache2.4" -k start
查看错误信息

发现httpd.conf配置出现问题打开httpd.conf进到547删除和PHPINIDir那两行
再次运行
httpd.exe -w -n "Apache2.4" -k start

再次进入httpd.conf文件找到ServerName 添加
ServerName localhost:9090

然后再启动Apache就成功了。
587

被折叠的 条评论
为什么被折叠?