我通过同一端口退出了Skype,但仍无法正常工作。我尝试重新启动PC并重新启动了Xamppp。但不起作用。
8:47:28 PM [Apache] Attempting to start Apache app...
8:47:28 PM [Apache] Status change detected: running
8:47:28 PM [Apache] Status change detected: stopped
8:47:28 PM [Apache] Error: Apache shutdown unexpectedly.
8:47:28 PM [Apache] This may be due to a blocked port, missing dependencies,
8:47:28 PM [Apache] improper privileges, a crash, or a shutdown by another method.
8:47:28 PM [Apache] Press the Logs button to view error logs and check
8:47:28 PM [Apache] the Windows Event Viewer for more clues
8:47:28 PM [Apache] If you need more help, copy and post this
8:47:28 PM [Apache] entire log window on the forums
8:47:30 PM [Apache] Problem detected!
8:47:30 PM [Apache] Port 80 in use by "Unable to open process" with PID 4!
8:47:30 PM [Apache] Apache WILL NOT start without the configured ports free!
8:47:30 PM [Apache] You need to uninstall/disable/reconfienter code heregure the blocking application
8:47:30 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
我正在使用xampp,但在启动xampp时遇到错误,如何解决此错误。
解决方案:
在XAMPP控制面板上,停止Apache模块,单击Config按钮,然后选择Apache(httpd.conf)。在文件上找到(Ctrl + F)80。将所有80替换为您喜欢的随机值(8080看起来不错)并保存文件。现在单击Config按钮,然后选择Apache(httpd-ssl.conf)。在文件上找到(Ctrl + F)443。用您喜欢的随机值替换所有443(4433看起来不错)并保存文件。再次启动Apache模块。现在,APACHE必须正常工作:)
笔记:
如果您想知道此错误的确切原因,请打开“任务管理器”并转到“详细信息”选项卡。查找XAMPP错误日志中提到的PID的过程。此处确切发生的是您的端口正在忙于另一个进程,该进程由PID(进程ID)指示。因此,在解决方案中,我们要做的是为APACHE分配另一个端口。
其他提示:
当您在浏览器的地址栏上键入localhost时,默认情况下它将使用端口80。但是,由于您更改了Apache Module的默认端口,因此请确保相应地调整本地主机的地址。例如,如果将端口80更改为端口8080,则必须始终在浏览器上使用http:// localhost:8080 /,这样浏览器才能知道Apache现在正在使用端口8080,而不是默认端口港口。
看到它并不难:)在您的主题中,您说“ ..database不起作用”,但是错误日志在MySQL上没有提及。如果您的MySQL模块也有同样的错误,则必须如上所述进行简单的端口配置。如果遇到困难,可以在我的博客文章中找到相关步骤:http : //ashenlive.blogspot.com/2016/08/web-programming-with-php.html
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句