asked on
I am moving a webserver from Windows Server 2016 to Windows Server 2019. I am using XAMPP, which works fine on the 2016 VM. After moving the htdocs folder, as well as the SSL certificate related files (*.crts), I also copied some lines I edited on the old machine to C:\xampp\apache\con\httpd.conf on the new server. I added Apache2.4 to the list of Windows services, but it doesn't want to start. Here is what XAMPP Control Panel message says:
3:58:19 PM [Apache] Attempting to start Apache service...
3:58:59 PM [Apache] Attempting to start Apache service...
3:59:00 PM [Apache] Status change detected: running
3:59:01 PM [Apache] Status change detected: stopped
3:59:01 PM [Apache] Error: Apache shutdown unexpectedly.
3:59:01 PM [Apache] This may be due to a blocked port, missing dependencies,
3:59:01 PM [Apache] improper privileges, a crash, or a shutdown by another method.
3:59:01 PM [Apache] Press the Logs button to view error logs and check
3:59:01 PM [Apache] the Windows Event Viewer for more clues
3:59:01 PM [Apache] If you need more help, copy and post this
3:59:01 PM [Apache] entire log window on the forums
At some point, after trying to start the Apache2.4 service, I saw this in C:\xampp\apache\logs\error.log:
[Thu Nov 04 14:13:10.387186 2021] [ssl:warn] [pid 10768:tid 624] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Nov 04 14:13:10.621571 2021] [mpm_winnt:notice] [pid 10768:tid 624] AH00455: Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/8.0.12 configured -- resuming normal operations
[Thu Nov 04 14:13:10.621571 2021] [mpm_winnt:notice] [pid 10768:tid 624] AH00456: Apache Lounge VS16 Server built: Oct 7 2021 16:27:02
[Thu Nov 04 14:13:10.621571 2021] [core:notice] [pid 10768:tid 624] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Nov 04 14:13:10.637179 2021] [mpm_winnt:notice] [pid 10768:tid 624] AH00418: Parent: Created child process 7852
[Thu Nov 04 14:13:11.605908 2021] [ssl:warn] [pid 7852:tid 472] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Nov 04 14:13:11.793390 2021] [mpm_winnt:notice] [pid 7852:tid 472] AH00354: Child: Starting 150 worker threads.
but then I commented out all the lines related to SSL and now I don't see any errors in Apache's error.log and in C:\xampp\php\logs\php_error_log. In order to troubleshoot, it would be nice to enable logging, but I am not sure where to start.
ASKER
This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.
TRUSTED BY
Open in new window
what is the certificate configured for? the old host?
if the certificate is for Server1 and you move it to Server2 you would have issues because the host name doesn't match
should work if you decommission the 2016 server, rename the 2019 server as the same name so the certificate matches; otherwise you will need a certificate to match the host name of the 2019 server