Apache stops immediately

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache stops immediately

Postby truongductri01 » 15. December 2019 18:56

12:53:56 PM [Apache] Attempting to start Apache app...
12:53:56 PM [Apache] Status change detected: running
12:53:57 PM [Apache] Status change detected: stopped
12:53:57 PM [Apache] Error: Apache shutdown unexpectedly.
12:53:57 PM [Apache] This may be due to a blocked port, missing dependencies,
12:53:57 PM [Apache] improper privileges, a crash, or a shutdown by another method.
12:53:57 PM [Apache] Press the Logs button to view error logs and check
12:53:57 PM [Apache] the Windows Event Viewer for more clues
12:53:57 PM [Apache] If you need more help, copy and post this
12:53:57 PM [Apache] entire log window on the forums

What I should do to fix this? Thank you
truongductri01
 
Posts: 1
Joined: 15. December 2019 18:54
XAMPP version: 3.2.4
Operating System: Windows 64-bit

Re: Apache stops immediately

Postby Mariah1902 » 17. December 2019 06:31

I was having the same issue but this reply helped me a lot. I hope you will find your answer from this.
As I am working in a corporate environment where developers faces firewall issues, none of the other answers resolved my issue.
As the port is not used by Skype, but by some other internal applications, I followed the below steps to resolve the issue:
Step 1 - From the XAMPP Control Panel, under Apache, click the Config button, and select the Apache (httpd.conf).
Inside the httpd.conf file, somehow I found a line that says:
Listen 80
And change the 80 into any number / port you want. In my scenario I’m using port 8080.
Listen 8080
Still from the httpd.conf file, I found another line that says:
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 that says
Listen 443
And change the 443 into any number / port you want. I’ll using 4433 as the new port number.
Listen 4433
Still from the httpd-ssl.conf file, find another line that says
<VirtualHost _default_:443>

ServerName localhost:443
And change 443 to 4433.
<VirtualHost _default_:4433>

ServerName localhost:4433
Remember to save the httpd.conf and httpd-ssl.conf files after performing some changes. Then restart the Apache service.
Mariah1902
 
Posts: 13
Joined: 27. October 2019 16:44
Location: Bangladesh
XAMPP version: qshey90
Operating System: windows 10 pro


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 186 guests