我刚刚下载xampp试图打开Apache的服务器,但是当我打开xampp的应用程序时,我试图启动apache的服务器,但它没有做任何事情。
在底部的窗口中写着:
[Apache] Attempting to start Apache service...
,
但我可以等几个小时,它不会一直无所事事。
我看过一些指南,它告诉问题可能是网络的端口,例如有些人告诉我必须在文件httpd.conf
中将端口从80更改为8080 ...
我尝试了这个解决方案,但结果是一样的。
你有想法解决这个问题吗?
当我打开xampp时,窗口打印出来:
16:41:52 [main] Initializing Control Panel
16:41:52 [main] Windows Version: Pro 64-bit
16:41:52 [main] XAMPP Version: 7.1.9
16:41:52 [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
16:41:52 [main] Running with Administrator rights - good!
16:41:52 [main] XAMPP Installation Directory: "c:\xampp\"
16:41:52 [main] Checking for prerequisites
16:41:52 [main] All prerequisites found
16:41:52 [main] Initializing Modules
16:41:52 [main] Starting Check-Timer
16:41:52 [main] Control Panel Ready
16:41:54 [Apache] Attempting to start Apache service...
在apache的error.log
文件中,我找到了这条消息:
[Mon Oct 09 19:41:27.872180 2017] [ssl:warn] [pid 13464:tid 492] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 09 19:41:28.222182 2017] [ssl:warn] [pid 13464:tid 492] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 09 19:41:32.168701 2017] [mpm_winnt:notice] [pid 13464:tid 492] AH00455: Apache/2.4.27 (Win32) OpenSSL/1.0.2l PHP/7.1.9 configured -- resuming normal operations
[Mon Oct 09 19:41:32.169681 2017] [mpm_winnt:notice] [pid 13464:tid 492] AH00456: Apache Lounge VC14 Server built: Jul 9 2017 11:48:22
[Mon Oct 09 19:41:32.169681 2017] [core:notice] [pid 13464:tid 492] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Mon Oct 09 19:41:32.182394 2017] [mpm_winnt:notice] [pid 13464:tid 492] AH00418: Parent: Created child process 21220
Apache server shutdown initiated...
sl:warn] [pid 21220:tid 452] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 09 19:41:33.053714 2017] [ssl:warn] [pid 21220:tid 452] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Oct 09 19:41:33.078015 2017] [mpm_winnt:notice] [pid 21220:tid 452] AH00354: Child: Starting 150 worker threads.
[Mon Oct 09 19:42:22.979035 2017] [mpm_winnt:notice] [pid 13464:tid 492] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Oct 09 19:42:24.981274 2017] [mpm_winnt:notice] [pid 21220:tid 452] AH00364: Child: All worker threads have exited.
[Mon Oct 09 19:42:25.016441 2017] [mpm_winnt:notice] [pid 13464:tid 492] AH00430: Parent: Child process 21220 exited successfully.