Server certificate does NOT include an ID XAMPP - apache

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.

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.

Xampp Apache server won't start - "Error: Apache shutdown unexpectedly."

I've searched far and wide on the internet for answers but with no success. I downloaded xampp a couple of months ago and everything has worked fine until recently. I noticed the problem when I was unable to access localhost so I went onto the xammp control panel and saw that apache was turned off. When I click start now every time I get this message -
13:41:55 [Apache] Error: Apache shutdown unexpectedly.
13:41:55 [Apache] This may be due to a blocked port, missing dependencies,
13:41:55 [Apache] improper privileges, a crash, or a shutdown by another method.
13:41:55 [Apache] Press the Logs button to view error logs and check
13:41:55 [Apache] the Windows Event Viewer for more clues
13:41:55 [Apache] If you need more help, copy and post this
13:41:55 [Apache] entire log window on the forums
A common answer to this seems to be to change the port from 80 to 8080 in the httpd.conf file and then changing it from 443 to 4433 in the httpd-ssl.conf file. I have already done this and still not working. When I check the apache error logs it says -
AH00020: Configuration Failed, exiting
It might be worth mentioning that I installed Wordpress on my local server a few days ago and maybe that might have something to do with it? I have tried everything from re-starting my computer to running a full virus scan and nothing seems to work.
I am using Windows 10, Apache version 2.4 and PHP 7.
I've now also tried typing in the command "httpd -t" in Shell and it returns "syntax OK". Also here is a sample from the apache error log -
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
[Tue Jun 09 04:15:03.462661 2020] [:emerg] [pid 4160:tid 548] AH00020: Configuration Failed, exiting
[Tue Jun 09 12:54:30.209908 2020] [core:warn] [pid 4000:tid 684] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
[Tue Jun 09 12:54:30.239019 2020] [:emerg] [pid 4000:tid 684] AH00020: Configuration Failed, exiting
Thanks for taking the time to read this and if anyone has any ideas it would be much appreciated.
Ok I've managed to solve the proplem.
For anyone who is having the same problem (apache won't start even if port 80 is available) this info could be useful.
When I looked through the apache error logs there were a number of errors but the particular error causing the problem was -
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
If anyone else gets this error it can be solved by installing the "Visual Studio 2015, 2017 and 2019" runtime (x64: vc_redist.x64.exe). Here's the link to where you can download it.
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
After the download is finished, go into xampp folder and right click on xampp-control.exe, click "run as administrator" then you should be able to start apache with no problems.
Hope this will help anyone who winds up in the same situation as I did.
Do you have checked the log files?
Sometimes it helps to reboot your computer. And then start xampp again

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.