I recently decided to upgrade PHP from 7.4 (what I had installed earlier today) to 8.2.
I have tried installing all the 3 latest XAMPP installers for windows found at https://www.apachefriends.org/download.html
Every time, after installing, when I try to start the server, I get the old ambiguous error:
Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check
the Windows Event Viewer for more clues
If you need more help, copy and post this
entire log window on the forums
When I run php --version
in terminal, I get PHP Warning: 'C:\Program Files\Eclipse Adoptium\jdk-11.0.16.101-hotspot\bin\VCRUNTIME140.dll' 14.15 is not compatible with this PHP build linked with 14.29 in Unknown on line 0
Both of the errors above are the same for all three XAMMP versions I tried installing: 8.0.24, 8.1.12, 8.2.0.
I tried reinstalling my old 7.4 XAMPP, also from the website, and it installed perfectly and things were back to how they were before.
I have tried looking for conflicting ports. There are none. I have tried restarting my computer many times.
Has anyone else had this problem? Why can't my computer seem to run XAMPP > 8.0?
Other hint 1: the uninstaller is being fluky. As it uninstalls itself, it opens terminal windows that I have to manually close for it to proceed.
Other hint 2: when I try to edit httpd-vhost.config
, it closes all by itself. Not normal for my trusty text editor.
I use Windows 11.
EDIT: I found a solution that worked for me at https://stackoverflow.com/a/59545871/21020683. I am still not able to start Apache, but at least the PHP software is working. When I run php --version
, I now get PHP 8.2.0 (cli) (built: Dec 6 2022 15:31:23) (ZTS Visual C++ 2019 x64)