简体   繁体   English

错误:Apache 意外关机。 [ apache,xampp,phpmyadmin ]

[英]Error: Apache shutdown unexpectedly. [ apache,xampp,phpmyadmin ]

when I try to open apache this erorr apears:当我尝试打开 apache 时出现此错误:

2:45:49 PM  [Apache]    Error: Apache shutdown unexpectedly.
2:45:49 PM  [Apache]    This may be due to a blocked port, missing dependencies, 
2:45:49 PM  [Apache]    improper privileges, a crash, or a shutdown by another method.
2:45:49 PM  [Apache]    Press the Logs button to view error logs and check
2:45:49 PM  [Apache]    the Windows Event Viewer for more clues
2:45:49 PM  [Apache]    If you need more help, copy and post this
2:45:49 PM  [Apache]    entire log window on the forums

I tried to change th port and copy paste from the backup file to data file and didn't work我试图更改端口并将粘贴从备份文件复制到数据文件但没有用

I think if I reinstall it will work but I have databases and sites in HTDOCS what do I do我想如果我重新安装它会工作,但我在HTDOCS中有数据库和站点我该怎么办

Go to xampp and open your apache config you will see there httpd.conf open it, scroll down and find Go 到 xampp 并打开您的 apache 配置,您将看到httpd.conf打开它,向下滚动并找到

Listen 80听 80

Change it to将其更改为

Listen 8080听8080

Then scroll down and find然后向下滚动并找到

ServerName localhost:80服务器名称本地主机:80

And change it to并将其更改为

ServerName localhost:8080服务器名称 localhost:8080

I think the information was useful.我认为这些信息很有用。 It worked for me...它对我有用...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM