Xampp could not open log file sslkey.log - apache

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.

Related

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.

XAMPP Apache shutdown unexpectedly. Seems not port 80 issues

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.

Problem detected: Apache Not Found !, Disabling Apache buttons

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.

Server certificate does NOT include an ID XAMPP

I'm trying to get Apache running on my system using XAMPP, every time I try to start it I get an error:
09:28:04 [Apache] Error: Apache shutdown unexpectedly.
09:28:04 [Apache] This may be due to a blocked port, missing dependencies,
09:28:04 [Apache] improper privileges, a crash, or a shutdown by another > method.
09:28:04 [Apache] Press the Logs button to view error logs and check
09:28:04 [Apache] the Windows Event Viewer for more clues
09:28:04 [Apache] If you need more help, copy and post this
09:28:04 [Apache] entire log window on the forums
I've then opened the error log and it seems like it keeps outputting:
[ssl:warn] [pid 8516:tid 704] AH01909: www.example.com:443:0 server ? certificate does NOT include an ID which matches the server name
I then tried to do a little more research on the error and I then discovered that it could be administration issues, so I then ran it as admin but still nothing. Not sure how to proceed with this issue, so I thought I'd ask for help from someone with a little more experience with Apache and XAMPP.
I've discovered that a fresh install of XAMPP resolved my error, and I can now run Apache with no errors.

Apache unexpectedly shut down after start on XAMPP (Windows 7)

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/