mpp\apache\bin\httpd.exe”。如果在cmd提示符中运行相同的命令,它将清楚地显示带有文件名和行号的错误
你所需要做的就是在代码中找到相应的文件并解决它。你的问题就会得到解决 在我的例子中,我在虚拟主机配置中将文件/xampp/apache/conf/extra/httpd-vhost.conf从第27行更改为第34行时出错mpp\apache\bin\httpd.exe”。如果在cmd提示符中运行相同的命令,它将清楚地显示带有文件名和行号的错误,apache,xampp,Apache,Xampp,你所需要做的就是在代码中找到相应的文件并解决它。你的问题就会得到解决 在我的例子中,我在虚拟主机配置中将文件/xampp/apache/conf/extra/httpd-vhost.conf从第27行更改为第34行时出错 ##<VirtualHost *:80> ##ServerAdmin www.example.com@localhost ##DocumentRoot "C:/xampp/htdocs" ##ServerName www.example.co
##<VirtualHost *:80>
##ServerAdmin www.example.com@localhost
##DocumentRoot "C:/xampp/htdocs"
##ServerName www.example.com
##ServerAlias www.dummy-host.example.com
##ErrorLog "logs/dummy-host.example.com-error.log"
##CustomLog "logs/dummy-host.example.com-access.log" common
##</VirtualHost>
##
##ServerAdmin www.example。com@localhost
##DocumentRoot“C:/xampp/htdocs”
##服务器名www.example.com
##ServerAlias www.dummy-host.example.com
##ErrorLog“logs/dummy host.example.com error.log”
##CustomLog“logs/dummy host.example.com access.log”通用
##
到
服务器管理员admin@localhost
DocumentRoot“C:/xampp/htdocs/snipe it/public”
服务器名本地主机
##ServerAlias www.dummy-host.example.com
##ErrorLog“logs/dummy host.example.com error.log”
##CustomLog“logs/dummy host.example.com access.log”通用
并重新启动了我的apache。我的问题已解决。阅读Windows事件查看器,可能Windows出于某些原因已停止apache进程阅读Windows事件查看器,可能Windows出于某些原因已停止apache进程阅读Windows事件查看器,可能Windows出于某些原因已停止apache进程阅读Windows事件查看器,可能windows出于某种原因停止了apache进程,“如果您在cmd提示符下运行相同的命令,它将清楚地显示带有文件名和行号的错误。”谢谢Megamage。“如果您在cmd提示符下运行相同的命令,它将清楚地显示带有文件名和行号的错误。“谢谢Megamage。”如果在cmd提示符下运行相同的命令,它将清楚地显示带有文件名和行号的错误。“谢谢Megamage”。如果在cmd提示符下运行相同的命令,它将清楚地显示带有文件名和行号的错误。“谢谢Megamage”。
netstat -a
##<VirtualHost *:80>
##ServerAdmin www.example.com@localhost
##DocumentRoot "C:/xampp/htdocs"
##ServerName www.example.com
##ServerAlias www.dummy-host.example.com
##ErrorLog "logs/dummy-host.example.com-error.log"
##CustomLog "logs/dummy-host.example.com-access.log" common
##</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot "C:/xampp/htdocs/snipe-it/public"
ServerName localhost
##ServerAlias www.dummy-host.example.com
##ErrorLog "logs/dummy-host.example.com-error.log"
##CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>