XAMPP showing errors after fresh Windows Installation - apache

I had XAMPP installed in D:/ drive (HDD 500GB) while I had to do a fresh installation of windows 10 in C:/ Drive (SSD 128GB).
I didnot change anything in D:/ drive before or after installation of windows. yet When I open the XAMPP interface and start apache it shows following error log.
Apache Error Log
[Mon Nov 29 22:47:59.081101 2021] [ssl:warn] [pid 1388:tid 604] AH01909: www.example.com:443:0 enter code here enter code hereserver certificate does NOT include an ID which matches the server name
[Mon Nov 29 22:47:59.159264 2021] [core:warn] [pid 1388:tid 604] AH00098: pid file E:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Nov 29 22:47:59.163263 2021] [ssl:warn] [pid 1388:tid 604] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
[Mon Nov 29 22:47:59.171261 2021] [:emerg] [pid 1388:tid 604] AH00020: Configuration Failed, exiting

Seems like the quickest solution is to do a fresh install of XAMPP.
It pretty easy to transfer the XAMPP htdocs folder which contains your lifetime of code, it just simply copy and paste the htdocs folder into a new install of XAMPP.
For your databases it's pretty simple also:
Copy all your self created databases folders that are located in xampp/mysql/data
Copy ibdata1 file located in in xampp/mysql/data
Paste your database folders and the ibdata1 file into the xampp/mysql/data on a new install of XAMPP
done !

Related

XAMMP Port:8080 SSL Issues - Only on Older version of XAMPP

I wonder if anyone can point me in the right direction.
Trying to host multiple websites locally, Problem with this is, there is multiple PHP versions due to them being outdated - I will fix this later.
For now, I am trying to get a second website running locally on an older version of XAMPP to match the PHP version of the website. The issue I am having is the common SSL redirect error - trying to visit the localhost/website redirects to HTTPS every time. So the website is not reachable at all.
I know you can use CGI Virtual host's for different version of PHP - That is my next avenue.
I have a version of XAMPP running 7.1 with a website and that works fine - so this version of xampp 5.4.6 I have changed to port: 8080, 444 .
Things I have tried that have not worked.
Installing SSL locally to PC
Redirect IP via Host file
Complete reinstall, re-download and re-configuration with and without SSL certs
Last line of the error logs when trying to access:
Is there no way to force this to not happen. Via website files - or could it be the Xampp version?
Error logs as follows: I see how it says the ID does not match, It does not change.
[Thu Mar 17 08:58:58.989357 2022] [core:warn] [pid 18316:tid 300] AH00098: pid file C:/xampp5/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Mar 17 08:58:59.101339 2022] [ssl:warn] [pid 18316:tid 300] AH01909: www.example.com:444:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 17 08:58:59.136882 2022] [mpm_winnt:notice] [pid 18316:tid 300] AH00455: Apache/2.4.38 (Win64) OpenSSL/1.0.2q PHP/5.6.40 configured -- resuming normal operations
[Thu Mar 17 08:58:59.136882 2022] [mpm_winnt:notice] [pid 18316:tid 300] AH00456: Apache Lounge VC11 Server built: Jan 21 2019 13:25:29
[Thu Mar 17 08:58:59.136882 2022] [core:notice] [pid 18316:tid 300] AH00094: Command line: 'c:\xampp5\apache\bin\httpd.exe -d C:/xampp5/apache'
[Thu Mar 17 08:58:59.156152 2022] [mpm_winnt:notice] [pid 18316:tid 300] AH00418: Parent: Created child process 13520
[Thu Mar 17 08:58:59.677736 2022] [ssl:warn] [pid 13520:tid 584] AH01909: www.example.com:444:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 17 08:58:59.851891 2022] [ssl:warn] [pid 13520:tid 584] AH01909: www.example.com:444:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 17 08:58:59.897765 2022] [mpm_winnt:notice] [pid 13520:tid 584] AH00354: Child: Starting 150 worker threads.

Apache is failing to start after enabling/disabling mod_ssl

4.7 (Ubuntu) and I tried to setup a proxy with SSL on already existing instance that acts as proxy for other non-ssl apps. I enabled ssl by running a2enmod ssl and restarted. Instantly I received alerts that proxies for other apps stopped working. Immediately I ran a2dismod ssl command and restarted apache which failed. In apache2/error.log i found the following errors:
Mon Aug 17 23:04:31.670430 2015] [ssl:emerg] [pid 16151:tid 140301083379584] AH02241: Init: Unable to read server certificate from file /etc/apache2/ssl/touc.com.pem
[Mon Aug 17 23:04:31.670473 2015] [ssl:emerg] [pid 16151:tid 140301083379584] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Mon Aug 17 23:04:31.670491 2015] [ssl:emerg] [pid 16151:tid 140301083379584] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=X509)
[Mon Aug 17 23:04:31.670501 2015] [ssl:emerg] [pid 16151:tid 140301083379584] AH02312: Fatal error initialising mod_ssl, exiting.
Since then I am not able to make other proxies available, but when I access their URLs directly they are working. Any clues what I am missing?
Found out what exactly went wrong. Apparently enabling ssl_mod disables proxy_http and when you disable ssl_mod you need to re-enable proxy_http. As soon as you restart your apache server everything works.

Apache error with Xampp

I installed XAMPP and had the UAC error when it was installed, so I installed it on a different drive, but now whenever I try to start Apache I get this error.
[Mon Aug 17 18:13:12.648796 2015] [ssl:warn] [pid 7380:tid 528] AH01909:
www.example.com:443:0 server certificate does NOT include an ID which
matches the server name
[Mon Aug 17 18:13:13.075852 2015] [ssl:warn] [pid 7380:tid 528] AH01909:
www.example.com:443:0 server certificate does NOT include an ID which
matches the server name
Don't know how to fix this at all
Quick fix:
Install VirtualBox + lightweight Linux, and then install LAMP server. Better than XAMPP.

apache starts but stops right away

For a while now I can't start apache.
(I don't have skype running)
I have tried googling it but no help.
I tried reinstaling, same thing. Tried easyphp, same thing happens to it too.
When I start it it says it started, but few seconds later it says it has stoped, and shows an error
20:39:59 [Apache] Attempting to start Apache service...
20:40:01 [Apache] Status change detected: running
20:40:06 [Apache] Status change detected: stopped
20:40:06 [Apache] Error: Apache shutdown unexpectedly.
20:40:06 [Apache] This may be due to a blocked port, missing dependencies,
20:40:06 [Apache] improper privileges, a crash, or a shutdown by another method.
20:40:06 [Apache] Press the Logs button to view error logs and check
20:40:06 [Apache] the Windows Event Viewer for more clues
20:40:06 [Apache] If you need more help, copy and post this
20:40:06 [Apache] entire log window on the forums
Error log file:
[Mon Nov 11 20:40:01.984375 2013] [ssl:warn] [pid 3940:tid 248] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Nov 11 20:40:02.703125 2013] [ssl:warn] [pid 3940:tid 248] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Nov 11 20:40:02.921875 2013] [mpm_winnt:notice] [pid 3940:tid 248] AH00455: Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19 configured -- resuming normal operations
[Mon Nov 11 20:40:02.921875 2013] [mpm_winnt:notice] [pid 3940:tid 248] AH00456: Server built: Feb 23 2013 13:07:34
[Mon Nov 11 20:40:02.921875 2013] [core:notice] [pid 3940:tid 248] AH00094: Command line: 'c:\\program files\\xampp\\apache\\bin\\httpd.exe -d C:/Program Files/xampp/apache'
[Mon Nov 11 20:40:02.921875 2013] [mpm_winnt:notice] [pid 3940:tid 248] AH00418: Parent: Created child process 2176
[Mon Nov 11 20:40:04.875000 2013] [ssl:warn] [pid 2176:tid 1876] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Nov 11 20:40:05.734375 2013] [ssl:warn] [pid 2176:tid 1876] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Mon Nov 11 20:40:05.984375 2013] [mpm_winnt:crit] [pid 2176:tid 1876] (OS 10022)An invalid argument was supplied. : AH00405: Child: WSASocket failed to open the inherited socket
[Mon Nov 11 20:40:05.984375 2013] [mpm_winnt:crit] [pid 3940:tid 248] AH00427: Parent: child process 2176 exited with status 3 -- Aborting.
Hope someone knows what the problem is
It looks like you have ssl improperly configured for one of your domains (www.example.com). Try commenting out Include (path)/(to)/httpd-ssl.conf include line and LoadModule ssl_module modules/mod_ssl.so in your httpd.conf file.
If the commenting out of the ssl config works, it may be that the SSL port (443) is in use on your machine. Uncomment the above, then in httpd-ssl.conf, try changing line(s) Listen 443 to an alternative (not-in-use) port number, i.e. Listen 49199.
At the command line, you can use netstat -aon to see what ports are currently in use on your machine.

Apache Won't Start on new Xampp installation: The pipe has been ended. Child: Unable to read socket data from parent

I've just installed Xampp 1.8.1 on Windows 8. I try to start Apache and it initially turns Green, then shuts down. I check the error logs, but the error messages are Greek to me, even after googling.
Here's a screencast: http://screencast.com/t/VnSsZy6h9Wap
Here are the error messages:
[mpm_winnt:notice] [pid 4676:tid 392] AH00455: Apache/2.4.3 (Win32) PHP/5.4.7 configured -- resuming normal operations
[mpm_winnt:notice] [pid 4676:tid 392] AH00456: Server built: Aug 18 2012 12:41:37
[core:notice] [pid 4676:tid 392] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[mpm_winnt:notice] [pid 4676:tid 392] AH00418: Parent: Created child process 732
[mpm_winnt:crit] [pid 732:tid 392] (OS 109)The pipe has been ended. : AH00404: Child: Unable to read socket data from parent
[mpm_winnt:crit] [pid 4676:tid 392] AH00427: Parent: child process exited with status 3 -- Aborting.
Skype is not installed. I added C:\xampp\apache\bin\httpd.exe to Windows Defender, and even disabled Windows Firewall.
You may try two things..
one, configure apache on a different port other than what it's configured right now (may be default 80)..
second thing, you try Not to install apache as a service..if it's installed as a service you can use sc delete [service name] to delete the service..