"Apache shutdown unexpectedly" even after reinstallation - xampp

Here is my netstat. When I click start the mysql it only says attempting to start my sql service and nothing happens and with Apache it shows an error message.
Error: Apache shutdown unexpectedly.
9:30:47 PM [Apache] This may be due to a blocked port, missing dependencies,
9:30:47 PM [Apache] improper privileges, a crash, or a shutdown by another method.
9:30:47 PM [Apache] Press the Logs button to view error logs and check
9:30:47 PM [Apache] the Windows Event Viewer for more clues
9:30:47 PM [Apache] If you need more help, copy and post this
9:30:47 PM [Apache] entire log window on the forums

As you can see in the Netstat-Application System uses Port 80 for something. You have to find the program, which uses this Port and stop it. Then it should work.

Related

Error when start Azure Function in Visual Studio Pro 2017

when I want to start the Azure Function in 2017 the error comes up:
I don't know why.
07.07.2020 20:21:57] Retrying to start listener for function 'Function1' (Attempt 5)
[07.07.2020 20:21:57] A ScriptHost error has occurred
[07.07.2020 20:21:57] The listener for function 'Function1' was unable to start. Microsoft.Azure.WebJobs.Extensions.DocumentDB: The listener has already been started or is starting.
[07.07.2020 20:21:57] The listener for function 'Function1' was unable to start. Microsoft.Azure.WebJobs.Extensions.DocumentDB: The listener has already been started or is starting.
[07.07.2020 20:21:57]
[07.07.2020 20:21:57] The listener for function 'Function1' was unable to start.
[07.07.2020 20:21:57] The listener for function 'Function1' was unable to start. Microsoft.Azure.WebJobs.Extensions.DocumentDB: The listener has already been started or is starting.
What should I do?
Thanks
Please show the local.settings.json of your function app. Maybe the connection string has some problem.
If your firewall restricts func from accessing the Storage Account, then this error may be reported. The firewall is one of the reasons that the listener cannot access the virtual Storage Emulator.
When running the function locally, all triggers except httptrigger need to use the Storage Emulator. If the firewall restricts the listener's access to virtual storage, problems can occur when performing functions.
Try disabling the firewall and see if that resolves the issue.
Of course, it is also possible that the Storage Emulator service is not open. Try typing
"%programfiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" status
in cmd to check the status.
If it returns false, enter the following command to start the Storage Emulator:
"%programfiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" init
"%programfiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start
To sum up:
This type of problem is generally for three reasons.
1.Connection string error prevents connection,
2.firewall is set
3.some services are not turned on.
Please do the above steps and let me know whether you can solve this problem.:)

Tomcat stop error

Event viewer error
tomcat service stop timeout.
I use Tomcat 5.5, JDK1.8.20, the operating system is WinServer2012R2.
I tried to stop the Tomcat service in the window service, but it appeared in the timeout, event viewer error like picture.
Is it related to window update?
To skomisa, thank you for your help, I found the answer, and indeed it has a relationship with windows update, you can view this link.
https://www.bleepingcomputer.com/news/microsoft/microsoft-released-windows-7-and-81-cumulative-updates-kb4345459-and-kb4345424/

Cause of Service Control Manager restarting a service

Service Control Manager in Windows Server 2016 keeps restarting one of the service every 1 min. How can we find the reason behind service control manager restarting the service?
On checking out the event view I am able to see Event ID 7031 with the below error description:
service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 60000 milliseconds: Restart the service.
Locate the service (as it is named in the Event description) in Windows services console (Run->Services.msc).
Right-click on the service and go to Properties.
Navigate to the Recovery tab. Here it is defined the action taken (in your case restart the service) when the service terminates unexpectedly as for Event ID 7031

Apache server not running after installing SSL

I am trying to enable SSL on Apache Server (XAMPP) on Windows Server 2012 R2. I have a signed certificate from a Certificate Authority.
Following the installation instructions, I copied the private key, Server Certificate and Intermediate CA certificate properly to right directory and also made necessary certificates name path settings in httpd-ssl file.
Now when i am trying to start Apache through Xampp it is giving me following error:
Error: Apache shutdown unexpectedly.
12:42:29 This may be due to a blocked port, missing dependencies,
12:42:29 improper privileges, a crash, or a shutdown by another method.
12:42:29 Press the Logs button to view error logs and check
12:42:29 the Windows Event Viewer for more clues
12:42:29 If you need more help, copy and post this
12:42:29 entire log window on the forums
Finally error is resolved now. The Error is because of "SSLPassPhraseDialog builtin is not supported on Win32". I followed this link and got it working. "https://support.quovadisglobal.com/KB/a90/i-get-error-message-error-init-sslpassphrasedialog.aspx" Thanks again.

On XAMPP for Windows: Apache closes abruptly

I started using XAMPP for Windows recently. Yesterday, it was working just fine, but not today. I had already disabled the use of port 80 and 4xx from Skype (after seeing lots of posts about that) and had even removed the software from startup. MYSQL and FileZilla start just fine with XAMPP, but I get this when I try to use Apache (which I can install it as a service):
Attempting to start Apache app...
Executing "f:\xampp\apache\bin\httpd.exe"
Return code: 0
Status change detected: running
Status change detected: stopped
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
Now, I am also getting this on Event Viewer: "Event Log is unavailable. Verify that the service is running." When going to services and I try to initialize Apache2.4, it gives me a message and later disappears from the Service list.
I can start Apache when I install the serivce and then click on "Start," but then it gets stuck on "Attempting to start Apache service..." and nothing happens.
I also click on Apache's "Start" without installing the service, and that's when I get the long error above.
When I click on "Start" again, after the "Attempting to start Apache service..," I get "Status change detected: running" and then immediately "Status change detected: stopped" and then again
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
Not sure what to do now. Please help.
I am having identical issues. XAMPP was also working yesterday and this morning has not been able to start. My error log does not display anything from today, but some logs from yesterday are present. I will let you know if I find the answer...
EDIT: I reinstalled XAMPP and everything seems to work fine now. Not an ideal answer I know...
Maybe u have opned skype at the same time because Apache's port its the same as the skype.So when a conflit exist Apache refuse to respond.

Resources