Please note, I'm a newb so bear with me if this is just a stupid mistake.
I have XAMPP on my Win 7 laptop, no IIS, no extra MySQL stuff. However, everytime I click start for the apache module this comes up.
18:18:01 [Apache] Problem detected!
18:18:01 [Apache] Port 80 in use by "Unable to open process" with PID 4!
18:18:01 [Apache] Apache WILL NOT start without the configured ports free!
18:18:01 [Apache] You need to uninstall/disable/reconfigure the blocking application
18:18:01 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
18:18:01 [Apache] Attempting to start Apache app...
18:18:02 [Apache] Status change detected: running
18:18:02 [Apache] Status change detected: stopped
18:18:02 [Apache] Error: Apache shutdown unexpectedly.
18:18:02 [Apache] This may be due to a blocked port, missing dependencies,
18:18:02 [Apache] improper privileges, a crash, or a shutdown by another method.
18:18:02 [Apache] Press the Logs button to view error logs and check
18:18:02 [Apache] the Windows Event Viewer for more clues
18:18:02 [Apache] If you need more help, copy and post this
18:18:02 [Apache] entire log window on the forums
Skype and VMWare is disconnected, nothing in Error log or Windows Event Viewer, and as far as I know, port 80 is free
Any advice would be most welcome.
Many thanks
EDIT: thanks for the answer. Turns out the Web Deploy Service issued with Microsoft WebMatrix was to blame. Many thanks.
From the error log, it is obvious that port 80 is opened
Open a CMD prompt and type in command: net stop was /y
Run Dialog Box (press keys Win+R) .. then type: services.msc
I then scrolled down to: World Wide Web Publishing Service Double clicked on it and clicked STOP (if this service status is Started)
Start Apache again with XAMPP :)
Link Ref: http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/
Related
I'm running Xampp v3.3.0 on windows 10, I recently had a reset and reinstall of my PC and also my xampp. Now, anytime I try to start the appache service, I get this...
03:35:40 [Apache] Error: Apache shutdown unexpectedly.
03:35:40 [Apache] This may be due to a blocked port,
missing dependencies,
03:35:40 [Apache] improper privileges, a crash, or a
shutdown by another method.
03:35:40 [Apache] Press the Logs button to view error
logs and check
03:35:40 [Apache] the Windows Event Viewer for more clues
03:35:40 [Apache] If you need more help, copy and post
this
03:35:40 [Apache] entire log window on the forums
I've gotten answers that involve changing port 80 and others, done that and restarted my PC and apache to no avail..It still won't start
Try this:
Run cmd as an administrator
Navigate to xampp/apache/bin
Type httpd -t
That will check the validity of your apache config file.
I am new to php and I have encountered this problem directly after a complete new installation on Windows. I do not have Skype on the device.
When I try to start my Apache in the XAMPP Control Panel, I get the following errors:
5:02:46 AM [Apache] Attempting to start Apache app...
5:02:46 AM [Apache] Status change detected: running
5:02:47 AM [Apache] Status change detected: stopped
5:02:47 AM [Apache] Error: Apache shutdown unexpectedly.
5:02:47 AM [Apache] This may be due to a blocked port, missing dependencies,
5:02:47 AM [Apache] improper privileges, a crash, or a shutdown by another method.
5:02:47 AM [Apache] Press the Logs button to view error logs and check
5:02:47 AM [Apache] the Windows Event Viewer for more clues
5:02:47 AM [Apache] If you need more help, copy and post this
5:02:47 AM [Apache] entire log window on the forums
Error Logs
I have checked through the Netstat panel and port 80 and 443 is not used.
Netstat
For safety, I still tried to change the port but it didn't work. I do try to stop the services on port 80 by issuing
net stop http
but it didn't work too. Stop Services
I do try to execute xampp_start.exe but it didn't show any info about the issue. Then I try to issue the command
apache_start.bat
in the shell panel but it showed nothing too.
Shell
I do have VMWare and Kaspersky in my device. I tried to close the VMWare and Workstation in the services.exe but it seems doesn't work.
How do I solve this? Since I am new any help is appreciated.
I am using Bitnami XAMPP on windows 7. It has been more than a year i'm using, but today all of a sudden it is showing Apache shutdown unexpectedly error.
Attempting to start Apache app... 9:43:46 PM [Apache] Status change
detected: running 9:43:47 PM [Apache] Status change detected:
stopped 9:43:47 PM [Apache] Error: Apache shutdown unexpectedly.
9:43:47 PM [Apache] This may be due to a blocked port, missing
dependencies, 9:43:47 PM [Apache] improper privileges, a crash, or
a shutdown by another method. 9:43:47 PM [Apache] Press the Logs
button to view error logs and check 9:43:47 PM [Apache] the Windows
Event Viewer for more clues 9:43:47 PM [Apache] If you need more
help, copy and post this 9:43:47 PM [Apache] entire log window on
the forums
Please note that Skype is not running, and i even tried changing the port to 81 by editing httpd.conf. Still I have unchecked "use port 80 and 443 or additional incoming connections"
After changing port number to 81 I went to Command prompt and used command
netstat -nab
I did not get any applications using port 81. I'm done restarting XAMPP and my computer.
Have you tried changing the port using the Xampp Control Panel?
Bitnami developer here.
It seems related to a blocked port. Try to change from the XAMPP Control Panel the both http and https ports in all the Apache configuration files.
To do that, press Config on the Apache section, and change the ports in httpd.conf and httpd-ssl.conf
You need also change the service port: Config (button on the right corner) -> Service and Ports Settings.
Click Netstat button if you want to see the currently used ports.
I hope it helps
David
I installed XAMPP and for some reason when I start running Apache, it doesn't run. I'm not using Skype and also changed the port from 80 to 8080,7777. But nothing seems to work.
Also when I try opening the logs, they are empty.
The detailed error which I get is as follows
10:29:55 PM [Apache] Attempting to start Apache app...
10:29:55 PM [Apache] Status change detected: running
10:29:57 PM [Apache] Status change detected: stopped
10:29:57 PM [Apache] Error: Apache shutdown unexpectedly.
10:29:57 PM [Apache] This may be due to a blocked port, missing dependencies,
10:29:57 PM [Apache] improper privileges, a crash, or a shutdown by another method.
10:29:57 PM [Apache] Press the Logs button to view error logs and check
10:29:57 PM [Apache] the Windows Event Viewer for more clues
10:29:57 PM [Apache] If you need more help, copy and post this
10:29:57 PM [Apache] entire log window on the forums
Please someone help
Well,somehow resinstalling XAMPP worked for me.
Be sure to install (or unzip) the xampp folder to the root directory (C:\). It helped me even when Skype was listening on the same port apache still would boot up.
Than it is good practise to change http port and ssl port to some different number up to 65535. You have to change it in 3 steps:
1) In Config Panel -> Service and Port Settings -> Main Port & SSL Port
2) Apache (httpd.conf)
3) Apache (httpd-ssl.conf)
I tried installing xampp from the following site: http://www.apachefriends.org/en/xampp-windows.html
I had problems installing. When the control panel runs, it shows green signal for MySql and Mercury only, and especially when I start Apache, it gives an Exception.
And at some point it says to disable UAC, but I guess that is not recommended in Windows, so what should I do?
And I also received an error which said "class not registered".
The following are the errors I receive when I start Apache:
11:27:40 [Apache] Problem detected!
11:27:40 [Apache] Port 443 in use by "Unable to open process" with PID 1476!
11:27:40 [Apache] Apache WILL NOT start without the configured ports free!
11:27:40 [Apache] You need to uninstall/disable/reconfigure the blocking application
11:27:40 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
11:27:40 [Apache] Attempting to start Apache service...
12:04:47 [Apache] Problem detected!
12:04:47 [Apache] Port 80 in use by "Unable to open process" with PID 1476!
12:04:47 [Apache] Apache WILL NOT start without the configured ports free!
12:04:47 [Apache] You need to uninstall/disable/reconfigure the blocking application
12:04:47 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
12:04:47 [Apache] Problem detected!
12:04:47 [Apache] Port 443 in use by "Unable to open process" with PID 1476!
12:04:47 [Apache] Apache WILL NOT start without the configured ports free!
12:04:47 [Apache] You need to uninstall/disable/reconfigure the blocking application
12:04:47 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
12:04:47 [Apache] Attempting to start Apache service...
12:04:52 [Apache] Status change detected: running
12:04:53 [Apache] Status change detected: stopped
12:04:53 [Apache] Error: Apache shutdown unexpectedly.
12:04:53 [Apache] This may be due to a blocked port, missing dependencies,
12:04:53 [Apache] improper privileges, a crash, or a shutdown by another method.
12:04:53 [Apache] Press the Logs button to view error logs and check
12:04:53 [Apache] the Windows Event Viewer for more clues
Where are these logs buttons? And from where to free the ports?. I don't use Skype so my port 80 is probably free. Please help.
I was able to fix this by disabling UAC control and restarted it. But then contrary to my expectation after enabling UAC again it is still working fine.