安装完后,无论如何也启动不了httpd
后来发现有2个httpd进程。于是在另一个httpd的启动目录下使用 输入httpd.exe -k uninstall
再次尝试启动httpd,报错
Status change detected: stopped
9:25:45 [Apache] Error: Apache shutdown unexpectedly.
9:25:45 [Apache] This may be due to a blocked port, missing dependencies,
9:25:45 [Apache] improper privileges, a crash, or a shutdown by another method.
9:25:45 [Apache] Press the Logs button to view error logs and check
9:25:45 [Apache] the Windows Event Viewer for more clues
9:25:45 [Apache] If you need more help, copy and post this
9:25:45 [Apache] entire log window on the forums
怎么办呢?网上的文章启发我
应该是端口的问题,这里使用程序提供的设置功能设置一下端口,具体需要点击程序界面上的【config】按钮。{是最右上方的独立的 config按钮}
在新窗口中点击【server and por setting】,在设置窗口上输入对应的对应的端口,需要记得通常情况下80窗口及443窗口可以一起修改。我设置为 main port:7777 ssl:4444
然后回到主界面,点xampp后的config,在记事本中打开,需要注意的是80端口及443端口需要分别设置,我只找到80 将其设置和上面一样为Listen 7777,443 没有找到。保存笔记本修改
最后点击主界面上的 Starrt启动按钮,就成功了