To fix "XAMPP, Apache - Error: Apache shutdown unexpectedly" error, by pass port 80. Step 1 - From the XAMPP Control Panel, under Apache, click the Config button, and select the Apache (httpd.conf). == Inside the httpd.conf file, find a line: Listen 80 == Change the 80 into any number / port you want. Let's use port 8080. Listen 8080 == Still from the httpd.conf file, find another line: ServerName localhost:80 == Change 80 to 8080. ServerName localhost:8080 Step 2 - From the XAMPP Control Panel, under Apache, click the Config button again, but this time select the Apache (httpd-ssl.conf). Inside the httpd-ssl.conf file, find line: Listen 443 == Change the 443 into any number / port you want. Let's use 4433. Listen 4433 == Still from the httpd-ssl.conf file, find another two lines: ... ServerName www.example.com:443 == Change 443 to 4433. ... ServerName www.example.com:4433 Step 3 - Shut down XAMPP control panel, start it again, test