Link to home
Start Free TrialLog in
Avatar of Jason Yu
Jason YuFlag for United States of America

asked on

apache in XAMPP can't start

The apache module in XAMPP can't start. The message is as below;

3:07:24 PM  [Apache]       Status change detected: running
3:07:24 PM  [Apache]       Status change detected: stopped
3:07:24 PM  [Apache]       Error: Apache shutdown unexpectedly.
3:07:24 PM  [Apache]       This may be due to a blocked port, missing dependencies,
3:07:24 PM  [Apache]       improper privileges, a crash, or a shutdown by another method.
3:07:24 PM  [Apache]       Check the "/xampp/apache/logs/error.log" file
3:07:24 PM  [Apache]       and the Windows Event Viewer for more clues
3:08:56 PM  [Apache]       Attempting to start Apache app...
3:08:56 PM  [Apache]       Status change detected: running
3:08:57 PM  [Apache]       Status change detected: stopped
3:08:57 PM  [Apache]       Error: Apache shutdown unexpectedly.
3:08:57 PM  [Apache]       This may be due to a blocked port, missing dependencies,
3:08:57 PM  [Apache]       improper privileges, a crash, or a shutdown by another method.
3:08:57 PM  [Apache]       Check the "/xampp/apache/logs/error.log" file
3:08:57 PM  [Apache]       and the Windows Event Viewer for more clues
3:09:02 PM  [Apache]       Attempting to start Apache app...
3:09:02 PM  [Apache]       Status change detected: running
3:09:03 PM  [Apache]       Status change detected: stopped
3:09:03 PM  [Apache]       Error: Apache shutdown unexpectedly.
3:09:03 PM  [Apache]       This may be due to a blocked port, missing dependencies,
3:09:03 PM  [Apache]       improper privileges, a crash, or a shutdown by another method.
3:09:03 PM  [Apache]       Check the "/xampp/apache/logs/error.log" file
3:09:03 PM  [Apache]       and the Windows Event Viewer for more clues
3:09:11 PM  [Apache]       Attempting to start Apache app...
3:09:12 PM  [Apache]       Status change detected: running
3:09:12 PM  [Apache]       Status change detected: stopped
3:09:12 PM  [Apache]       Error: Apache shutdown unexpectedly.
3:09:12 PM  [Apache]       This may be due to a blocked port, missing dependencies,
3:09:12 PM  [Apache]       improper privileges, a crash, or a shutdown by another method.
3:09:12 PM  [Apache]       Check the "/xampp/apache/logs/error.log" file
3:09:12 PM  [Apache]       and the Windows Event Viewer for more clues



The error log is :

[Thu Nov 08 13:28:18.975221 2012] [ssl:warn] [pid 1164:tid 244] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Nov 08 13:28:19.084421 2012] [mpm_winnt:notice] [pid 1164:tid 244] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Thu Nov 08 13:28:19.084421 2012] [mpm_winnt:notice] [pid 1164:tid 244] AH00456: Server built: Aug 18 2012 12:41:37
[Thu Nov 08 13:28:19.084421 2012] [core:notice] [pid 1164:tid 244] AH00094: Command line: 'd:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Thu Nov 08 13:28:19.084421 2012] [mpm_winnt:notice] [pid 1164:tid 244] AH00418: Parent: Created child process 1248
[Thu Nov 08 13:28:20.207621 2012] [ssl:warn] [pid 1248:tid 256] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Nov 08 13:28:20.270021 2012] [mpm_winnt:notice] [pid 1248:tid 256] AH00354: Child: Starting 150 worker threads.
[Thu Nov 08 13:29:49.915621 2012] [core:warn] [pid 2196:tid 244] AH00098: pid file D:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Nov 08 13:29:50.243221 2012] [ssl:warn] [pid 2196:tid 244] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Nov 08 13:29:50.290021 2012] [mpm_winnt:notice] [pid 2196:tid 244] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Thu Nov 08 13:29:50.290021 2012] [mpm_winnt:notice] [pid 2196:tid 244] AH00456: Server built: Aug 18 2012 12:41:37
[Thu Nov 08 13:29:50.290021 2012] [core:notice] [pid 2196:tid 244] AH00094: Command line: 'd:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Thu Nov 08 13:29:50.290021 2012] [mpm_winnt:notice] [pid 2196:tid 244] AH00418: Parent: Created child process 4960
[Thu Nov 08 13:29:51.538021 2012] [ssl:warn] [pid 4960:tid 256] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Nov 08 13:29:51.584821 2012] [mpm_winnt:notice] [pid 4960:tid 256] AH00354: Child: Starting 150 worker threads.
SOLUTION
Avatar of E C
E C
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Has it ever run?  Is IIS also running on that machine?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Download
http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx

Run it and see if anything is listening on 80/443 other than httpd.exe
Avatar of Jason Yu

ASKER

Thanks for reply, it says port 80 is used, but in TCP view, i couldn't terminate the process which uses port 80, how to do it next?


Problem detected!
4:33:05 PM  [Apache]       Port 80 in use by "system"!
4:33:05 PM  [Apache]       Apache WILL NOT start without the configured ports free!
4:33:05 PM  [Apache]       You need to uninstall/disable/reconfigure the blocking application
4:33:05 PM  [Apache]       or reconfigure Apache to listen on a different port
Did you run the program I referenced above to see what is using port 80?
open your command prompt and type in:

     netstat -o

it will tell you what is using port 80, and the process ID.
Then go into your Task Manager and find that process ID.
It will show under Local Port (not remote port)
here is the result from TCPview
....waiting....
How to close these two programs.
What two programs? You haven't attached the process list.
Id are 4, it's in the print screen.
here is the print screen, sorry didn't post it.
TCPViewResult.jpg
Here is the full print screen.
TCPViewResult.jpg
Neither of those screenshots show 80 being used
From the program do File/Save As and attach the text file.
'System' can mean any number of services.

1. Open your Task Manager
2. In the Processes tab, click 'Show processes from all users'
3. Go to the Services tab and look for Process ID 4
4. Right-click on it and select 'Go To Process'
here is the result from netstat
TCPViewResul2t.jpg
Hi Gary,
the Local Port (in TCPView) will say 'http' instead of '80'
It's the two at the bottom of the screen shot.
I still think it's a Windows Service that is using Port 80.

Did you check your Services control panel and see if you had any of these running:
- Skype
- SQL Server Reporting Services
- VMWare Workstation Server

If so, turn them off and then try again.
what is "Sercies control panel? is it task manager/services tab?
ecarbone;

I agree with you, but how could I find these two process and kill them.

from the task manger/servcies, I even don't have any process with PID number 4.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
From Windows 7:
1. Click on the Start menu
2. In the search box, type 'services.msc' and press Enter
it says " Unable to query properties for System".
Are you an Administrator on this computer?
(do you know how to check?)

1. Click on the Start menu
2. In the Search box, type user
3. In the search results, click on User Accounts

When the Control Panel appears, you should see your user account.
Under your name, make sure it says "Administrator"
Yes, I am the admin and I log in as domain admin.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I recall after I installed Visual Studio Express 2012 IDE, it began to malfunction.

Also, I notice after I install the above software, there is a iis 7.0 extension been installed.


Is it possible the Express 2012 set up a web server for testing ASP webpages? I installed this IDE for making ASP webpages. If this web server use port 80, that will conflict with existing XAMPP server, right?
Here is the installed program window, please take a look and advise me which programs should be uninstalled.
error.jpg
error.jpg
11-8-2012-10-08-18-PM.png
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Unfortunately, I checked all my service list, none of the service are exactly the same as the services' name you listed above. Please see the attachments for all the services list.


I also did a test, if I changed the port number 80 to other number, the apache service can start and I can open the website. But if I change it back, it doesn't work anymore.

I am affirmative of other services used port 80, but the problem is how could I find them and delete them from my computer. I need make apache server working, which is my primary goal.

I am a system admin/DBA for a college, there are bunch of programming running on my desktop, before I test, I already deleted five to six programs. It maybe more than you expected.

thanks.
ServiceList1.jpg
ServiceList2.jpg
ServiceList3.jpg
ServiceList4.jpg
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi, ecarbone:

You are right, there is a service using port 80, it's the Web Client service, don't know what this
program is. AFter I disable this service, I can start apache server.

thank you very much, all the experts here who posted.

I will assign points according to the relevance.
good solution