Page 1 of 1

Apache stops after starting. No error log file.

PostPosted: 25. April 2013 15:57
by magic_al
Hi all,

I just set up a Windows 7 VM. I tried to run Apache / Xampp. The attempt produces the following message:

Code: Select all
16:51:40  [Apache]    This may be due to a blocked port, missing dependencies,
16:51:40  [Apache]    improper privileges, a crash, or a shutdown by another method.
16:51:40  [Apache]    Check the "/xampp/apache/logs/error.log" file
16:51:40  [Apache]    and the Windows Event Viewer for more clues


The mentioned log file does not exist. What I already did was to check the famous port 80 problem. I changed the port used within apache to 81 but that resulted in the same kind of error. The installation folder ist 'C:\xampp' as suggested. Can anyone help me out here?

Thanks a lot!

Re: Apache stops after starting. No error log file.

PostPosted: 26. April 2013 00:27
by hackattack142
Hello,

1. Are the Visual C++ 2008 runtimes installed on your system? http://www.microsoft.com/en-us/download ... px?id=5582
2. Could you post the entire Control Panel log window contents?
3. What, if any, errors does Apache show when you try to start it from the batch file (apache_start.bat)?

Re: Apache stops after starting. No error log file.

PostPosted: 26. April 2013 10:10
by magic_al
Well, installing runtimes worked out for me. Thanks for the hint.

Re: Apache stops after starting. No error log file.

PostPosted: 27. April 2013 08:34
by denkas
hackattack142 wrote:Hello,

1. Are the Visual C++ 2008 runtimes installed on your system? http://www.microsoft.com/en-us/download/details.aspx?id=5582
2. Could you post the entire Control Panel log window contents?
3. What, if any, errors does Apache show when you try to start it from the batch file (apache_start.bat)?


Downloaded this, installed but still getting error. Something about port beeing used.

10:29:17 [main] Initializing Control Panel
10:29:17 [main] Windows Version: Windows 7 Ultimate SP1 64-bit
10:29:17 [main] XAMPP Version: 1.8.1
10:29:17 [main] Control Panel Version: 3.2.0 [ Compiled: March 24th 2013 ]
10:29:17 [main] Running with Administrator rights - good!
10:29:17 [main] XAMPP Installation Directory: "c:\xampp\"
10:29:17 [main] Checking for prerequisites
10:29:17 [main] All prerequisites found
10:29:17 [main] Initializing Modules
10:29:17 [Apache] Problem detected!
10:29:17 [Apache] Port 80 in use by "Unable to open process" with PID 4!
10:29:17 [Apache] Apache WILL NOT start without the configured ports free!
10:29:17 [Apache] You need to uninstall/disable/reconfigure the blocking application
10:29:17 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
10:29:17 [main] Starting Check-Timer
10:29:17 [main] Control Panel Ready
10:29:24 [Apache] Problem detected!
10:29:24 [Apache] Port 80 in use by "Unable to open process" with PID 4!
10:29:24 [Apache] Apache WILL NOT start without the configured ports free!
10:29:24 [Apache] You need to uninstall/disable/reconfigure the blocking application
10:29:24 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
10:29:24 [Apache] Attempting to start Apache app...
10:29:25 [Apache] Status change detected: running
10:29:25 [Apache] Status change detected: stopped
10:29:25 [Apache] Error: Apache shutdown unexpectedly.
10:29:25 [Apache] This may be due to a blocked port, missing dependencies,
10:29:25 [Apache] improper privileges, a crash, or a shutdown by another method.
10:29:25 [Apache] Press the Logs button to view error logs and check
10:29:25 [Apache] the Windows Event Viewer for more clues
10:29:25 [Apache] If you need more help, copy and post this
10:29:25 [Apache] entire log window on the forums

edit: i went through hell just to open that damned port, so please be nice to me and explain to me simply.
Thank's in advance to anyone that will support.

Re: Apache stops after starting. No error log file.

PostPosted: 28. April 2013 20:10
by hackattack142
Hello,

PID 4 is typically the System process which means that a Windows Service is most likely using that port.

It is typically either IIS or and IIS related component. One common one is World Wide Web Publishing Service.

You also have the option of reconfiguring Apache to use a different port if you are unable to find what is blocking it.

Re: Apache stops after starting. No error log file.

PostPosted: 30. June 2013 19:24
by tomown
hackattack142 wrote:Hello,

PID 4 is typically the System process which means that a Windows Service is most likely using that port.

It is typically either IIS or and IIS related component. One common one is World Wide Web Publishing Service.

You also have the option of reconfiguring Apache to use a different port if you are unable to find what is blocking it.


Had the same issue, disabling this service resolved it.

Re: Apache stops after starting. No error log file.

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

Re: Apache stops after starting. No error log file.

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

We need the entire content of your XAMPP control panel log windows not only this small excerpt.

Re: Apache stops after starting. No error log file.

PostPosted: 19. July 2013 22:02
by wali.kareeme
http://complete-concrete-concise.com/web-tools/how-to-change-the-apache-port-in-xampp


this 1 is the solution change the port through this mthod

Re: Apache stops after starting. No error log file.

PostPosted: 23. July 2013 05:37
by Altrea
Changing the Apache port is never a solution just a workaround.
The most recommend way is to identify the process currently running on that port and if this is really needed to run there.