Page 1 of 1

Apache won't start

PostPosted: 20. July 2013 10:56
by ForbiddenChunk
I have v3.2.1 and it was working fine until one day I came to access it and got the following;

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

I can't see any obvious reason why?... :?

Re: Apache won't start

PostPosted: 23. July 2013 01:41
by hackattack142
Hello,

Could you post the entire XAMPP Control Panel log window and not just the snippet.

Also, are there any errors in your Apache error log and do you get any errors if you run 'apache_start.bat' in the main XAMPP directory

Re: Apache won't start

PostPosted: 05. August 2013 20:05
by ForbiddenChunk
20:04:32 [main] Initializing Control Panel
20:04:32 [main] Windows Version: Windows 7 Professional SP1 64-bit
20:04:32 [main] XAMPP Version: 1.8.1
20:04:32 [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
20:04:32 [main] You are not running with administrator rights! This will work for
20:04:32 [main] most application stuff but whenever you do something with services
20:04:32 [main] there will be a security dialogue or things will break! So think
20:04:32 [main] about running this application with administrator rights!
20:04:32 [main] XAMPP Installation Directory: "c:\xampp\"
20:04:32 [main] Checking for prerequisites
20:04:33 [main] All prerequisites found
20:04:33 [main] Initializing Modules
20:04:33 [Apache] Problem detected!
20:04:33 [Apache] Port 80 in use by "Unable to open process" with PID 4!
20:04:33 [Apache] Apache WILL NOT start without the configured ports free!
20:04:33 [Apache] You need to uninstall/disable/reconfigure the blocking application
20:04:33 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
20:04:33 [mysql] XAMPP MySQL Service is already running on port 3306
20:04:33 [main] Enabling autostart for module "Apache"
20:04:33 [main] Starting Check-Timer
20:04:33 [main] Control Panel Ready
20:04:33 [Apache] Autostart active: starting...
20:04:33 [Apache] Problem detected!
20:04:33 [Apache] Port 80 in use by "Unable to open process" with PID 4!
20:04:33 [Apache] Apache WILL NOT start without the configured ports free!
20:04:33 [Apache] You need to uninstall/disable/reconfigure the blocking application
20:04:33 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
20:04:33 [Apache] Attempting to start Apache app...
20:04:34 [Apache] Status change detected: running
20:04:36 [Apache] Status change detected: stopped
20:04:36 [Apache] Error: Apache shutdown unexpectedly.
20:04:36 [Apache] This may be due to a blocked port, missing dependencies,
20:04:36 [Apache] improper privileges, a crash, or a shutdown by another method.
20:04:36 [Apache] Press the Logs button to view error logs and check
20:04:36 [Apache] the Windows Event Viewer for more clues
20:04:36 [Apache] If you need more help, copy and post this
20:04:36 [Apache] entire log window on the forums


Diese Eingabeforderung nicht waehrend des Running beenden
Bitte erst bei einem gewollten Shutdown schliessen
Please close this command only for Shutdown
Apache 2 is starting ...
(OS 10013)An attempt was made to access a socket in a way forbidden by its acces
s permissions. : AH00072: make_sock: could not bind to address [::]:80
(OS 10013)An attempt was made to access a socket in a way forbidden by its acces
s permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

Apache konnte nicht gestartet werden
Apache could not be started
Press any key to continue . . .

Re: Apache won't start

PostPosted: 05. August 2013 20:12
by Altrea
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)

are you using any of this while starting Apache?

Re: Apache won't start

PostPosted: 05. August 2013 20:24
by ForbiddenChunk
Yeah I use MSSQLSERVER, Visual Studio, Skype, TeamViewer....

Didn't know it conflicted with so many programs :-s

Re: Apache won't start

PostPosted: 05. August 2013 20:47
by Altrea
Well, Apache needs two ports, one for HTTP communication (Default port 80) and one for HTTPS/SSL (Default port 443).
Surely you can configurate Apache to use different ports, but this can have other side effects with your web applications.

Re: Apache won't start

PostPosted: 05. August 2013 21:28
by ForbiddenChunk
Thanks for getting back to me

What would you suggest I do then? Because I can configure Apache ports but if that cause side effects for my web apps that might not be so good

Re: Apache won't start

PostPosted: 05. August 2013 22:06
by Altrea
First of all you should identify which service is running and blocking the ports. This will be very common the SQL Server Reporting Services of MSSQLSERVER.
Then you have to decide if you really need this service or maybe you can stop the service for the time you are working with XAMPP.

I would not change Apaches default ports unless it is really needed.
Skype and TeamViewer for example can be configured not to use ports 80 and 443 without any influences for its functionality and most of the users.

Re: Apache won't start

PostPosted: 06. August 2013 20:02
by ForbiddenChunk
Ok I'll give that a try, thanks for your help

Re: Apache won't start

PostPosted: 06. August 2013 21:06
by ForbiddenChunk
Ok I stopped SQL server reporting services, team viewer and Skype and it still didn't respond

Are you aware of any way round this that will allow these all to run at intermittent times?

Re: Apache won't start

PostPosted: 06. August 2013 21:18
by Altrea
After every change (stopping these programs) check if there is now something different in your log files and log windows.
Maybe you got two issues.

Re: Apache won't start

PostPosted: 07. December 2013 13:47
by kudataz
Altrea wrote: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)

are you using any of this while starting Apache?


how o disable this list sir..? :shock:
  • Internet Information Service (IIS) / World Wide Web Publishing Service (W3SVC)
  • WebMatrix / Web Deployment Agent Service (MsDepSvc)
  • SQL Server Reporting Services (MSSQLSERVER)

Re: Apache won't start

PostPosted: 09. December 2013 04:29
by MordaUth
Thank You for posting this list of programs that block Apache Server from running. I was able fix the issue I had and get back up an working again. It was Odd because things were working fine before and then this next time I tried getting in I got the Port issue warning. Still don't know why it worked once then just quit but heh. Windows go figure. LOL