Apache refuse to start

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

Apache refuse to start

Postby Rodolpho B Campos » 23. March 2021 15:36

I'm having the same problem. The first problem I had was a message saying that there was missing a dll file called "Runtime140.dll" if i'm not mistaken. I looked online for the solution and downloaded a new file. Dropped it on the "System32" and "Syswow64" folders since I'm using a 64 bit Windows 10. When I tried to start my apache it showed the "error 0xc00007b" message and I haven't been able to start it since then. I think it's smt related to the "httpd.exe" but I haven't been able to confirm it.

I have re-installed it multiple times and tried to change the port from 80 to 8080 such as the port 443 to 4433 on the Xampp Control Panel but it didn't worked.
I already updated all the versions of the VisualC++ on my PC (2005,2008,2010,2012,2013,2015 and 2017) as well as the NetFramework and the DirectX.
I also have downloaded a pack of files that was supposed to substitute any corrupted or missing files on the "System32" and "SysWOW64" folders.
None of these worked...

I've been trying to find out if some app is using the port 80 and blocking the start of the apache but none of the methods I've found online worked.

I was starting a blog and was pretty excited about it but now I'm facing this problem for about a mounth and I just can't solve it and I can't tell you how frustrating it's been. I really don't want to format (I'm not sure if that's the term you use for it, I'm from Brazil) my pc, as I'm not sure if it would solve the problem.

And for as far as I read, even if I tried to install other programs like : Wamp. I would face the same problem.

If anyone there could help me, you will have my eternal gratitude. :cry:
Rodolpho B Campos
 
Posts: 4
Joined: 23. March 2021 15:01
XAMPP version: 8.0.3
Operating System: Windows 10

Re: Apache refuse to start

Postby Altrea » 23. March 2021 16:52

You did a whole bunch of unnecessary stuff.

Best would be to get rid of the xampp installation completely and start from scratch.
Download and install a fresh version of xampp and try to run it. If this will not work (and before you are trying anything weird by yourself) tell us what error messages you get, what the contents of your control panel log is and what is written in your apache error.log.
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: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache refuse to start

Postby Rodolpho B Campos » 29. March 2021 15:45

I've done it before and now. The control panel always shows the same message:

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

When I click on apache error.log it says that the file wasn't found and asks if I want to create one. Even if I do create one, when the error prompts again, there's nothing on the error.log and I don't know what or where to look at the Windows Event Viewer.
Rodolpho B Campos
 
Posts: 4
Joined: 23. March 2021 15:01
XAMPP version: 8.0.3
Operating System: Windows 10

Re: Apache refuse to start

Postby Altrea » 29. March 2021 17:07

Rodolpho B Campos wrote:11:30:15 [Apache] If you need more help, copy and post this
11:30:15 [Apache] entire log window on the forums

So, what are the other messages in the Log?
Where did you install xampp?

Can you try to start Apache by double clicking the apache_start.bat.bat script and tell us it's response?
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: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache refuse to start

Postby Rodolpho B Campos » 31. March 2021 13:28

That's all it shows in the Control Panel. It doesn't show any other message.

The "error" folder inside the "apache" folder contains these files: https://ibb.co/b2c56c7 are they of any help ?

When I try to starting it by the "apache_start" at the Xampp folder, it shows this message: https://ibb.co/PM286GM
Rodolpho B Campos
 
Posts: 4
Joined: 23. March 2021 15:01
XAMPP version: 8.0.3
Operating System: Windows 10

Re: Apache refuse to start

Postby Altrea » 31. March 2021 13:37

Rodolpho B Campos wrote:That's all it shows in the Control Panel. It doesn't show any other message.

That is simply not true. The control panel log starts with the line [main] Initializing Control Panel

Rodolpho B Campos wrote:The "error" folder inside the "apache" folder contains these files, are they of any help ? Image

No, this is not helpful

Rodolpho B Campos wrote:When I try to starting it by the "apache_start" at the Xampp folder, it shows this message Image

Error 0xc000007b means, you did not install the Visual C++ Runtimes which is a prerequirement to start Apache and PHP.
Please download and install the x64 variant of Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 from here https://support.microsoft.com/en-us/top ... f26a218cc0
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: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache refuse to start

Postby Rodolpho B Campos » 31. March 2021 14:00

It is working ! Thank you so much !

That is simply not true. The control panel log starts with the line [main] Initializing Control Panel

I pasted it in a previous reply.

I've updated the VisualC++ before as one solution I looked online recommended. Why it didn't worked back then ?
Rodolpho B Campos
 
Posts: 4
Joined: 23. March 2021 15:01
XAMPP version: 8.0.3
Operating System: Windows 10

Re: Apache refuse to start

Postby Altrea » 31. March 2021 14:33

Rodolpho B Campos wrote:It is working ! Thank you so much !

Glad you got this working.

Rodolpho B Campos wrote:I pasted it in a previous reply.

You posted only the Log messages starting with [Apache], which is simply not enough.
All other messages like the xampp version, the install path, the port precheck, etc you did not show us.

Rodolpho B Campos wrote:I've updated the VisualC++ before as one solution I looked online recommended. Why it didn't worked back then ?

Maybe you did not used the correct version. I cannot know that.
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: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache refuse to start

Postby wosecmay » 02. April 2021 15:54

Rodolpho B Campos wrote:I'm having the same problem. The first problem I had was a message saying that there was missing a dll file called "Runtime140.dll" if i'm not mistaken. I looked online for the solution and downloaded a new file. Dropped it on the "System32" and "Syswow64" folders since I'm using a 64 bit Windows 10. When I tried to start my apache it showed the "error 0xc00007b" message and I haven't been able to start it since then. I think it's smt related to the "httpd.exe" but I haven't been able to confirm it.

I have re-installed it multiple times and tried to change the port from 80 to 8080 such as the port 443 to 4433 on the Xampp Control Panel but it didn't worked.
I already updated my server as well as https://clicksud.mobi and all the versions of the VisualC++ on my PC (2005,2008,2010,2012,2013,2015 and 2017) as well as the NetFramework and the DirectX. I also have downloaded a pack of files that was supposed to substitute any corrupted or missing files on the "System32" and "SysWOW64" folders.
None of these worked...

I've been trying to find out if some app is using the port 80 and blocking the start of the apache but none of the methods I've found online worked.

I was starting a blog and was pretty excited about it but now I'm facing this problem for about a mounth and I just can't solve it and I can't tell you how frustrating it's been. I really don't want to format (I'm not sure if that's the term you use for it, I'm from Brazil) my pc, as I'm not sure if it would solve the problem.

And for as far as I read, even if I tried to install other programs like : Wamp. I would face the same problem.

If anyone there could help me, you will have my eternal gratitude. :cry:



Any errors should be printed to the error logs (often at /var/log/http/error_logs. Grep for ErrorLog in your httpd.conf to find out where.

I recommend using two windows. Do a 'tail -f error_log' in one window, and use another window to run the 'apachectl restart' command. After you find the error, update your answer here with the error message.
wosecmay
 
Posts: 1
Joined: 02. April 2021 15:50
XAMPP version: 1.0.1
Operating System: 9.1


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 148 guests