Page 1 of 1

Apache failing on start

PostPosted: 14. April 2021 22:06
by media_file
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

Re: Apache failing on start

PostPosted: 15. April 2021 06:33
by Altrea
What happens if you try to start Apache by double clicking the apache_start.bat script?
What is the response of this script?

Re: Apache failing on start

PostPosted: 21. April 2021 06:15
by rahmancyber.net
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.

Re: Apache failing on start

PostPosted: 21. April 2021 06:43
by Altrea
@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