Windows 10 XAMPP Apache shutdown unexpectedly - apache

I have some projects running with XAMPP on my computer and its running on Windows 10. I have been using XAMPP for the past 3 to 4 months with no problem at all, but yesterday suddenly after a windows update, it won't open the Apache server saying :
Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check
the Windows Event Viewer for more clues
If you need more help, copy and post this
entire log window on the forums
I have not been able to find a solution and i tryed many things I could find online, so please if anyone could help me?
EDIT**
I have rebooted my PC a couple of times since this happend and nothing changed! However i forgot to say while posting that the MySQL server is running like it used to! Apache server don't however.
EDIT 2**
I tried many things, such as uninstalling XAMPP and installing it back again, running Apache directly from CMD to check any errors (none were displayed), changed port configurations for Apache even tho port 80 seems to be listening and I also tried installing other XAMPP-like programs (such as MAMP, WAMP) but nothing really came out and no XAMPP-like programs worked! Does anyone have any suggestions?
Also, weird thing, XAMPP runs perfectly on my second PC (Windows 7), like it used to, but I want it in this PC, since here I do my development (The other is old and slow).
Also, now XAMPP seems not to throw the "red-line errors" in it's console, it is just saying:
[Apache] Attempting to start Apache service...
And it does not seems to change.
THIS ONLY HAPPENS WHEN I RUN AS ADMIN XAMPP!

I found the solution after diging to my log/error files and this is what is was displayed;
www.example.com:443:0 server certificate does NOT include an ID which matches the server name
pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
www.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning: 'C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.28 in Unknown on line 0
So i found a solution from anoher article at SO which you can find here

Related

Windows could not start the Apache CouchDB service on Local Computer

I have installed CouchDB on my Windows machine but while starting the CouchDB service, I am getting a message like:
Windows could not start the Apache CouchDB service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, please contact your system administrator.
As the service is not running, I am unable to access Fauxton too.
I am using Windows 7. CouchDB is 2.0.0. Port 5984 is not in use.
I don't think your question is a duplicate of https://stackoverflow.com/a/44107335/219187 because you are on Windows 7, and the problem described there is for Windows 10 with the creators update.
But maybe the solution fixes your problem as well? Here is the procedure:
Download the prelease build 2.2.4-101 from https://nssm.cc/download
Stop the CouchDB service through the Windows Services dialog (paused is not enough)
Overwrite nssm.exe in <CouchDbInstallDir>\bin with the one from the downloaded ZIP file (make sure you pick the right version 32 bit / 64 bit)
Start the CouchDB service
Issue it's happening since the last updates released by Microsoft. I'm not completely aware of what's causing it, but I think it's something related to CouchDB service not been able to start using Local Administrator rights.
However I've managed to start the service manually, by doing so:
Open Command Prompt - in the Search from the Start Menu or Task Bar type "cmd"
Run it as an Administrator - right click on the Command Prompt application and choose "Run as administrator" option /this is really IMPORTANT as it will allow the service to have administrator access/
Navigate to the folder where CouchDB is install - default path is "D:/CouchDB", but could be anywhere else; you have to find it
Go to the "bin" folder in there
Type "couchdb" as a command to start the service
You will see a message showing after this - "kernel-poll not supported; "K" parameter ignored"
If it adds some error messages after it or closes the whole terminal, you're making some things bad from this guide, so follow it strictly.
You can now open up the Fauxton application in the browser like normal from here - http://localhost:5984/_utils/
Keep in mind that you have to leave the cmd opened in order the service to be working as expected. As far as I saw no information was lost, so it's all good.
This is a temporary solution though, as we are waiting a relase from either Microsoft or Apache to solve the issue, or at least give us more explanation about it.
i just met the same problem.
the cause is space, you have to install CouchDB in a path without any space, even Program Files folder, because there is a space between Program and Files...

when start apache service wamp could not execute menu item access is deined

Environment:
Windows 8
WAMP 2.4 x86
Installed all those C++ lib packages saw in other posts
Troubleshooting done:
No error logged in either SQL / Apache error logs
Did not see any WAMP related service report in the windows event viewer
port 80 is NOT in use
Re-installed WAMP after install the packages
Error:
Received no error when try to click start serivice for mySQL,
but it will not start anyway,
since after I clicked it, the stop icon for mySQL is still grayed out.
and the main problem will be error message popup
when start apache service wamp could not execute menu item access is deined
I am pretty confused at this point as all the others nly have error message of service not starts, but I have error of access is denied as well when start Apache.
I don't know how to troubleshoot further to find the core issue....
Thanks
Silly Me.... forgot to copy the files INSIDE the www and data folders into the new location lololololol
The only step I missed..... Now it works perfectly :)
SO yea, whoever follow about steps and done above + copying those files in the original folder, the setup definitely will work!

Vagrant starts but cannot connect until I do a 'force provision'

I've got a Windows 7 machine setup with vagrant/virtualBox - each morning when I try to access my development site it always a 'Unable to connect' error message in my Firefox browser.
Even though I have booted the machine using the 'vagrant up' command for some reason it only seems to be accessible via the browser once I have done the 'vagrant provision' command. This is obviously annoying as it starts doing stuff from scratch.. eg installing my mysql database again.
Can anyone provide any light into this, and why it seems to fail to connect all the time - as this provision command is only a temporary fix as i'll need to amend the DB everytime which is only feasible in the short term.
Might just be my own setup - but I noticed nginx was restarting so have to restart this each time

WAMP Apache not starting up

I've trawled through the boards but cant find a solution to my problem.
I've run a netstat, and nothing else is using port 80. I have disabled every bit of security on my system, just to be doubly sure nothing is stopping it.
MySQL boots up just fine, but Apache does not start up. Using the built in port 80 tester also says that port 80 is clear, but when I click the start service button on Apache in WAMP nothing happens.
Any help is appreciated.
Run cmd.exe as administrator. Then execute:
httpd -t
httpd -k start
Are there any error messages displayed?
If not, temporarily disable any firewall and anti-virus software you have. Try again.
If you're still not getting any error messages, uninstall your WAMP and try one of the other distributions - http://en.wikipedia.org/wiki/Comparison_of_WAMPs
I have had the same problem but I have resolved it by logging out of Skpe, stopping Skype's service called Skype C2C Service and started wampapache Service. After I started wampserver, I then logged in Skype After. Both Skype and amperver work well after this process
Ok just do one thing. If you are running skype then close it. restart all services, It might work as it worked for me.
Some times this occurs when Windows Event log Service is disabled.
I recently faced the same problem,and browsed various answers around web in vain.
But later I remembered that I disabled Windows Event Log Service in Oder to run a game smoothly.So I Enabled that service again and now every thing is working fine.
Download and install vcredist_x86.exe from http://www.microsoft.com/en-us/download/details.aspx?id=8328
I opened up services.msc from the command prompt and disabled SQL Server reporting services
& SQL Server analysis services. These services were using port 80.
Then I restarted WAMP Server and it started working properly as before.
Check DocumentRoot directory location if it exists.
DocumentRoot "C:/wamp/www/"
I have solved my problem just following the below steps. Hope this will help to you.
Go to Wamp/Apach/httpd.conf
Under httpd.conf search for Listen in my case its Listen 0.0.0.0:80
Just change the last digit that means your Listen will be Listen 0.0.0.0:81
Save the file, after that start Apache
Thanks,
Amzad
From time to time, with the updates, Microsoft set the 'World Wide Web Publishing Service' startup type to 'Auto'. Try to see if that is your case.
Right-click on your Start button to open the WinX Menu. Select Run. This opens the Run box. Now type services.msc in it and hit Enter to open the Services Manager.
Locate that service and edit with double-clik then set the startup type to 'Disable' to avoid it comes into conflict.
hi the solution is simple.
all you have to do is to right click on wampserver icon on the taskbar and select exit.
after doing that right click on the wampserver.exe icon and select run as administrator option from the context menu.
that's it.
it will solve your problem

WIndows 2008 R1 suffers recurring 'Error 81' when running diagnostics. Unable to connect to DC

I've a recurring issue on a number of 2008 R1 servers. Replication stops completely, and any attempt to run any AD-related snap-ins or diagnostics fail.
For example:
C:\Windows\system32>dcdiag
Directory Server Diagnosis
Performing initial setup:
Trying to find home server...
Home Server = MYDC
Ldap search capabality attribute search failed on server MYDC, return
value = 81
Other tools also fail in the same manner:
C:\Windows\system32>repadmin /showreps
[d:\rtm\ds\ds\src\util\repadmin\repbind.c, 444] LDAP error 81 (Server Down) Win32 Err 58.
LDP can't connect to the server either:
ld = ldap_open("mydc", 389);
Error <0x51>: Fail to connect to mydc.
There are a couple of event log entries, but frankly I'm not sure if they are a cause or a symptom.
Event 1311:
The Knowledge Consistency Checker (KCC) has detected problems with the following directory partition.
Directory partition:
CN=Configuration,DC=ad,DC=mydomain,DC=co,DC=uk
Event 1566:
All directory servers in the following site that can replicate the directory partition over this transport are currently unavailable.
Site:
CN=MYSITE,CN=Sites,CN=Configuration,DC=ad,DC=mydomain,DC=co,DC=uk
Directory partition:
DC=ad,DC=mydomain,DC=co,DC=uk
Transport:
CN=IP,CN=Inter-Site Transports,CN=Sites,CN=Configuration,DC=ad,DC=mydomain,DC=co,DC=uk
A reboot always clears this up, and always after a month or two the same problem will crop up again on a different server. I've seen it on 5 different servers in different domains so far. Reboots are fine, but it always feels like a bit of a blunt instrument. I was hoping someone might have come across this before and be able to offer a fix.
thanks...
Is this related to: "All the TCP/IP ports that are in a TIME_WAIT status are not closed after 497 days from system startup in Windows Vista, in Windows 7, in Windows Server 2008 and in Windows Server 2008 R2" http://support.microsoft.com/kb/2553549