I’m using XAMPP v3.2.4 and the PHP version was 7.4, so I downloaded the latest version of XAMPP and copied the php folder to my xampp directory and renamed the old version of php to php7.4.
Then I followed these steps to complete the upgrading:
httpd-xampp.conf:
Replaced php7 to php8
Replaced php7_module to php_module
Then inside php.ini, set the absolute paths like xamppphp to C:xamppphp
But now when I restart the XAMPP, I cannot run Apache and get this error:
01:28:11 [Apache] Error: Apache shutdown unexpectedly.
01:28:11 [Apache] This may be due to a blocked port, missing dependencies,
01:28:11 [Apache] improper privileges, a crash, or a shutdown by another method.
01:28:11 [Apache] Press the Logs button to view error logs and check
01:28:11 [Apache] the Windows Event Viewer for more clues
01:28:11 [Apache] If you need more help, copy and post this
01:28:11 [Apache] entire log window on the forums
So it says can not start Apache due to a blocked port but it used to be run properly with the older version!
So what’s going wrong here? How can I solve this issue?