Problem detected: Apache Not Found !, Disabling Apache buttons - apache

I have been using xampp for a long time, everything was fine and work correctly.
one month ago the xampp server shut down suddenly and when try to start the apache I couldn't, it shows that start button disabled and I cant start it.
it gave me an error:
Problem detected: Apache Not Found!
8:16:51 PM [Apache] Disabling Apache buttons
8:16:51 PM [Apache] Run this program from your XAMPP root directory!
8:16:51 PM [mysql] Problem detected: MySQL Not Found!
8:16:51 PM [mysql] Disabling MySQL buttons
8:16:51 PM [mysql] Run this program from your XAMPP root directory!
I have tried all solutions:
I tried to re-install again but still same problem.
I disabled UAC while sitting up the xampp.
I disabled anti-virus on the laptop.
I changed the port number in the config file.
I installed the last version and the old version.
after many tries, I found out that when I start the Apache and MySQL it gives me unexpected error then it shut down and it deletes the following files from xampp folder in C:
mysql.exe and httpd.exe
that is why the buttons are disabled.
I did backup for these two files so and copied them and past them back in their specific paths and this what happened:
8:22:56 PM [Apache] Error: Apache shutdown unexpectedly.
8:22:56 PM [Apache] This may be due to a blocked port, missing dependencies,
8:22:56 PM [Apache] improper privileges, a crash, or a shutdown by another method.
8:22:56 PM [Apache] Press the Logs button to view error logs and check
8:22:56 PM [Apache] the Windows Event Viewer for more clues
8:22:56 PM [Apache] If you need more help, copy and post this
8:22:56 PM [Apache] entire log window on the forums
After that, these two files deleted again ...!!
I really have no idea how to fix this I did search everywhere but nothing worked with me.
I hope someone leads me with a proper solution for this issue I will be thankful for that.

Related

Xampp could not open log file sslkey.log

I have rune XAMPP in adminstrator mode, when I click "start" apache server. It returns this:
20:41:51 [Apache] Status change detected: stopped
20:41:51 [Apache] Error: Apache shutdown unexpectedly.
20:41:51 [Apache] This may be due to a blocked port, missing dependencies,
20:41:51 [Apache] improper privileges, a crash, or a shutdown by another method.
20:41:51 [Apache] Press the Logs button to view error logs and check
20:41:51 [Apache] the Windows Event Viewer for more clues
20:41:51 [Apache] If you need more help, copy and post this
20:41:51 [Apache] entire log window on the forums
I checked the error logs and it states this:
[Tue Feb 15 20:41:51.126535 2022] [ssl:notice] [pid 6152:tid 576] (OS 3)The system cannot find the path specified. : AH10226: Could not open log file 'C:\\Users\\Zen\\Desktop\\SSLKEY\\sslkey.log' configured via SSLKEYLOGFILE
AH00016: Configuration Failed
I have looked all over the internet and found nobody with the same issue. I have reinstalled XAMPP three times now, and restarted my PC each time.
I apologize if this is easy to solve, I am new to XAMPP and web development.
Thank you,
Zen
I figured it out. I have no idea why XAMPP, despite numerous reinstallations, was presuming that "C:\Users\Zen\Desktop\SSLKEY\sslkey.log" path existed.
But I simply created a folder on my desktop, and then created a file called sslkey.log (with nothing in it), and Apache now works.
Sorry it is a simple fix, I am brand new to web development.

Apache on xampp shut down unexpectedly

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.

Apache server not starting

I use Xampp as my webserver. I by mistake stopped the Apache server from Task Manager in Windows, now when I try to start it, it shows an error saying Apache service cannot be started.
4:44:43 PM [Apache] Error: Apache shutdown unexpectedly.
4:44:43 PM [Apache] This may be due to a blocked port, missing dependencies,
4:44:43 PM [Apache] improper privileges, a crash, or a shutdown by another method.
4:44:43 PM [Apache] Press the Logs button to view error logs and check
4:44:43 PM [Apache] the Windows Event Viewer for more clues
4:44:43 PM [Apache] If you need more help, copy and post this
4:44:43 PM [Apache] entire log window on the forums
I've tried changing my port from 80 to 82 but it didn't work out. Can anyone suggest a way to tackle this?
PS: I'm afraid the only way I can see is to uninstall and then reinstall.
You need to run it as a privileged user: you're trying to bind a port below 1024.
Alternatively you can change the port Apache listens on, to a port above 1024.

apache not running XAMPP

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

Error: Apache shutdown unexpectedly. Changed ports, Still not working

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)