Apache failing on start

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

Apache failing on start

Postby media_file » 14. April 2021 22:06

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

It wont work. I have changed ports and installed Visual Studio x64 but it still wont work. Apache fails to start all of a sudden
media_file
 
Posts: 1
Joined: 14. April 2021 22:05
XAMPP version: 3.2.4
Operating System: Windows 10

Re: Apache failing on start

Postby Altrea » 15. April 2021 06:33

What happens if you try to start Apache by double clicking the apache_start.bat script?
What is the response of this script?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11002
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Apache failing on start

Postby rahmancyber.net » 21. April 2021 06:15

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:
Code: Select all
Listen 80

And change the 80 into any number / port you want. In my scenario I’m using port 8080.
Code: Select all
Listen 8080

Still from the httpd.conf file, I found another line that says:
Code: Select all
ServerName localhost:80

Change 80 to 8080.
Code: Select all
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

Code: Select all
Listen 443

And change the 443 into any number / port you want. I’ll using 4433 as the new port number.
Code: Select all
Listen 4433

Still from the httpd-ssl.conf file, find another line that says
Code: Select all
<VirtualHost _default_:443>
ServerName localhost:443

And change 443 to 4433.
Code: Select all
<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.
rahmancyber.net
 
Posts: 2
Joined: 20. April 2021 23:58
Location: indonesia
XAMPP version: 7.4.10
Operating System: windows

Re: Apache failing on start

Postby Altrea » 21. April 2021 06:43

@rahmancyber.net
What tells you that this is a port conflict here?
The topic creater already told that he tried to change the ports without any success
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11002
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 102 guests