xampp not starting in Windows 7

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

xampp not starting in Windows 7

Postby jep6591 » 21. November 2013 19:42

I realize this is not a new topic, but I have no found a solution on the previous posts. I'm getting the following print out when I start Apache:

Error: Apache shutdown unexpectedly.
1:28:09 PM [Apache] This may be due to a blocked port, missing dependencies,
1:28:09 PM [Apache] improper privileges, a crash, or a shutdown by another method.
1:28:09 PM [Apache] Press the Logs button to view error logs and check
1:28:09 PM [Apache] the Windows Event Viewer for more clues
1:28:09 PM [Apache] If you need more help, copy and post this
1:28:09 PM [Apache] entire log window on the forums

I have turned off the port 80 in skype (as recommended). I have tried to check apache error logs but they are blank.

Any suggestions? Thank you in advance for your kind assistance.
jep6591
 
Posts: 4
Joined: 21. November 2013 19:32
Operating System: windows 7

Re: xampp not starting in Windows 7

Postby Altrea » 21. November 2013 19:47

The same answer as in all the other dozen threads of that type:

jep6591 wrote:1:28:09 PM [Apache] If you need more help, copy and post this
1:28:09 PM [Apache] entire log window on the forums

entire really means entire!
We need all control panel entries beginning with
Code: Select all
[main]    Initialisere Control Panel
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: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: xampp not starting in Windows 7

Postby jep6591 » 21. November 2013 20:14

In response to an earlier request for the complete log, I have included it below. I'm not sure what PID 4 is. And I have disabled Skype from using port 80. Can I configure Apached to use another port? And if so, what is the number? Thank you as always

Error: Apache shutdown unexpectedly.
2:11:23 PM [Apache] This may be due to a blocked port, missing dependencies,
2:11:23 PM [Apache] improper privileges, a crash, or a shutdown by another method.
2:11:23 PM [Apache] Press the Logs button to view error logs and check
2:11:23 PM [Apache] the Windows Event Viewer for more clues
2:11:23 PM [Apache] If you need more help, copy and post this
2:11:23 PM [Apache] entire log window on the forums
2:11:27 PM [Apache] Problem detected!
2:11:27 PM [Apache] Port 80 in use by "Unable to open process" with PID 4!
2:11:27 PM [Apache] Apache WILL NOT start without the configured ports free!
2:11:27 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
2:11:27 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
2:11:27 PM [Apache] Attempting to start Apache app...
2:11:27 PM [Apache] Status change detected: running
2:11:28 PM [Apache] Status change detected: stopped
2:11:28 PM [Apache] Error: Apache shutdown unexpectedly.
2:11:28 PM [Apache] This may be due to a blocked port, missing dependencies,
2:11:28 PM [Apache] improper privileges, a crash, or a shutdown by another method.
2:11:28 PM [Apache] Press the Logs button to view error logs and check
2:11:28 PM [Apache] the Windows Event Viewer for more clues
2:11:28 PM [Apache] If you need more help, copy and post this
2:11:28 PM [Apache] entire log window on the forums
jep6591
 
Posts: 4
Joined: 21. November 2013 19:32
Operating System: windows 7

Re: xampp not starting in Windows 7

Postby Altrea » 21. November 2013 20:30

jep6591 wrote:I'm not sure what PID 4 is.

That is a http proxy service provided by Microsoft for sharing one http port simultaneously for multiple applications.
Basicly that is a great idea, but practically only for that interface designed processes are able to participate from it (which Apache is not).

The problem with that proxy service is, that it is mostly intransparent which application is using this port because all is hidden behind that proxy.
A short list of programs known for using this proxy and port 80 can be found here: viewtopic.php?f=16&t=58765&p=220603#p220603

jep6591 wrote:Can I configure Apached to use another port?

Yes, but that will have other sideeffects. You will need to add this new port to every request and your applications must be designed to be able to run with different ports.
So, if there are other ways i would always choose one of them.

jep6591 wrote:And if so, what is the number?

I think i don't understand that question.
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: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: xampp not starting in Windows 7

Postby jep6591 » 21. November 2013 21:08

I went to the link you suggested and came up with the following applications that could interfere with apache:

Known programs / services using port 80 / 443 (as SYSTEM)
Internet Information Service (IIS) / World Wide Web Publishing Service (W3SVC)
WebMatrix / Web Deployment Agent Service (MsDepSvc)
SQL Server Reporting Services (MSSQLSERVER)

Now my question is: how do I either: 1. turn these services off? or 2: configure them to work with apache?

Obviously I am a newbie so I appreciate you patience. Thank you.
jep6591
 
Posts: 4
Joined: 21. November 2013 19:32
Operating System: windows 7

fixing port 80 problem in Windows 7

Postby jep6591 » 22. November 2013 03:54

Judging from the messages on this board, and on the internet in general, it seems many people have a problem getting XAMPP to start in Windows 7. Acting on advice from this board I went to a recommended site and found the following (quotation marks provided):

"Known programs / services using port 80 / 443 (as SYSTEM)
Internet Information Service (IIS) / World Wide Web Publishing Service (W3SVC)
WebMatrix / Web Deployment Agent Service (MsDepSvc)
SQL Server Reporting Services (MSSQLSERVER)

Some packages can contain one multiple of these programs, like IDEs as Visual Studio

other programs also using port 80 / 443
Skype
file sharing programs (torrent etc)
remote software (TeamViewer etc)"

In the XAMPP control panel I went to services and then found the World Wide Web Publishing Service (W3SVC) program and turned it off. XAMPP immediately started working.

I hope this helps.

Thanks to everyone who provided input.
jep6591
 
Posts: 4
Joined: 21. November 2013 19:32
Operating System: windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 48 guests