Questions
leon21leon21asked 4 months ago
 I try to start my Apache server in the XAMPP Control Panel, but got this error,
13:41:14  [Apache]     Attempting to start Apache app...
13:41:14  [Apache]  Status change detected: running
13:41:14  [Apache]  Status change detected: stopped
13:41:14  [Apache]  Error: Apache shutdown unexpectedly.
13:41:14  [Apache]  This may be due to a blocked port, missing dependencies, 
13:41:14  [Apache]  improper privileges, a crash, or a shutdown by another method.
13:41:14  [Apache]  Press the Logs button to view error logs and check
13:41:14  [Apache]  the Windows Event Viewer for more clues
13:41:14  [Apache]  If you need more help, copy and post this
13:41:14  [Apache]  entire log window on the forums
1

1 Answers

Accepted
codegenlabcodegenlabanswered 4 months ago

follow step,

Step 1 – From the XAMPP Control Panel, under Apache, click the Config button, and select the Apache (httpd.conf).

find these two line and change port 80,
Listen 80
ServerName localhost:80
replace it to 8020(you can find available port and replace it),
Listen 8020
ServerName localhost:8020
Step 2 – From the XAMPP Control Panel, under Apache, click the Config button, and select the Apache (httpd-ssl.conf). find these three line and change port 443,
Listen 443
<VirtualHost _default_:443>

ServerName localhost:443
replace it to port 4433,
Listen 4433
<VirtualHost _default_:4433>

ServerName localhost:4433
1