apache starts but stops right away - apache

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.

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.

XAMPP / Apache Error: Apache shutdown unexpectedly [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I am trying to get my website up and I am having some problems when starting my XAMPP Apache server
00:42:21 [Apache] Error: Apache shutdown unexpectedly.
00:42:21 [Apache] This may be due to a blocked port, missing dependencies,
00:42:21 [Apache] improper privileges, a crash, or a shutdown by another method.
00:42:21 [Apache] Press the Logs button to view error logs and check
00:42:21 [Apache] the Windows Event Viewer for more clues
00:42:21 [Apache] If you need more help, copy and post this
00:42:21 [Apache] entire log window on the forums
I tried the solutions from here with no success
What I tried is:
Changing the default ports from 80 and 433 to 8080 and 443
Killing all HTTP connections with net stop http
Reversing all my changes (because I have been trying to install an ssl security certificate from here)
I have had no success with adding the security certificate and now Apache doesn't even start
I know this is a pretty common question, and I have read lots of the answers of that question and tried them with no success.
Here are all my modifications to my httpd.conf file:
Listen 8080
ServerName localhost:8080
NameVirtualHost *:80
<VirtualHost *:80>
ServerName example.com
RedirectMatch 301 ^/$ /Website/Main.html
</VirtualHost>
# Redirects
Redirect /Discord /Website/Discord.html
Redirect /discord /Website/Discord.html
Redirect /Server "https://discord.gg/"
Redirect /server "https://discord.gg/"
Redirect /Bot /Website/Bot.html
Redirect /bot /Website/Bot.html
Redirect /SlashBot /Website/Bot.html
Redirect /slashbot /Website/Bot.html
Redirect /YouTube "https://www.youtube.com/channel/blablabla"
Redirect /youtube "https://www.youtube.com/channel/blablabla"
Redirect /YT "https://www.youtube.com/channel/blablabal"
Redirect /yt "https://www.youtube.com/channel/blablabla"
Redirect /Pong /Website/Games/Pong.html
Redirect /pong /Website/Games/Pong.html
Redirect /Snake /Website/Games/Snake.html
Redirect /snake /Website/Games/Snake.html
# ssl
ServerAdmin email#mail.com
DocumentRoot "C:/xampp/htdocs"
ServerName www.example.com
ErrorLog "logs/error.log"
SSLEngine on
SSLCertificateFile "C:/xampp/apache/conf/ssl/certificate.crt"
SSLCertificateKeyFile "C:/xampp/apache/conf/ssl/private.key"
SSLCertificateChainFile "C:/xampp/apache/conf/ssl/ca_bundl
I have checked the logs but there aren't any new logs:
[Wed Jul 28 22:13:42.963151 2021] [core:notice] [pid 6012:tid 640] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Jul 28 22:13:42.967141 2021] [mpm_winnt:notice] [pid 6012:tid 640] AH00418: Parent: Created child process 35132
AH00548: NameVirtualHost has no effect and will be removed in the next release C:/xampp/apache/conf/httpd.conf:571
[Wed Jul 28 22:13:43.541903 2021] [ssl:warn] [pid 35132:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 28 22:13:43.543897 2021] [ssl:warn] [pid 35132:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 28 22:13:43.543897 2021] [ssl:warn] [pid 35132:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 28 22:13:43.621131 2021] [ssl:warn] [pid 35132:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 28 22:13:43.622127 2021] [ssl:warn] [pid 35132:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 28 22:13:43.624121 2021] [ssl:warn] [pid 35132:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 28 22:13:43.679960 2021] [mpm_winnt:notice] [pid 35132:tid 580] AH00354: Child: Starting 150 worker threads.
[Wed Jul 28 22:15:04.471339 2021] [autoindex:error] [pid 35132:tid 1848] [client 81.104.41.225:51644] AH01276: Cannot serve directory C:/xampp/htdocs/Website/: No matching DirectoryIndex (index.php,index.pl,index.cgi,index.asp,index.shtml,index.html,index.htm,default.php,default.pl,default.cgi,default.asp,default.shtml,default.html,default.htm,home.php,home.pl,home.cgi,home.asp,home.shtml,home.html,home.htm) found, and server-generated directory index forbidden by Options directive
[Wed Jul 28 22:45:40.316622 2021] [mpm_winnt:notice] [pid 6012:tid 640] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Jul 28 22:45:42.336092 2021] [mpm_winnt:notice] [pid 35132:tid 580] AH00364: Child: All worker threads have exited.
[Wed Jul 28 22:45:44.523409 2021] [mpm_winnt:notice] [pid 6012:tid 640] AH00430: Parent: Child process 35132 exited successfully.
The logs stopped working when Apache stopped working.
I am sorry that there is little information.
I reinstalled XAMPP lots "thanks" for the help

Apache shutdown unexpectedly, No ports are using but still not working

i am using Xampp from "https://www.apachefriends.org/download.html" for php version 7.1.7
I have change my ports:8080(httpd.conf) and 4433 (httpd-ss;.conf) also tried some other port but while starting Apache I found this issue every time
2:48:41 AM [Apache] Error: Apache shutdown unexpectedly.
2:48:41 AM [Apache] This may be due to a blocked port, missing dependencies,
2:48:41 AM [Apache] improper privileges, a crash, or a shutdown by another method.
2:48:41 AM [Apache] Press the Logs button to view error logs and check
2:48:41 AM [Apache] the Windows Event Viewer for more clues
2:48:41 AM [Apache] If you need more help, copy and post this
2:48:41 AM [Apache] entire log window on the forums
and Apache (error.log)
[Wed Jul 19 02:45:02.474102 2017] [ssl:warn] [pid 4832:tid 600] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 19 02:45:02.881341 2017] [ssl:warn] [pid 4832:tid 600] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 19 02:45:02.998856 2017] [mpm_winnt:notice] [pid 4832:tid 600] AH00455: Apache/2.4.26 (Win32) OpenSSL/1.0.2l PHP/7.0.21 configured -- resuming normal operations
[Wed Jul 19 02:45:02.998856 2017] [mpm_winnt:notice] [pid 4832:tid 600] AH00456: Apache Lounge VC14 Server built: Jun 15 2017 12:39:41
[Wed Jul 19 02:45:02.998856 2017] [core:notice] [pid 4832:tid 600] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Jul 19 02:45:03.013855 2017] [mpm_winnt:notice] [pid 4832:tid 600] AH00418: Parent: Created child process 1088
[Wed Jul 19 02:45:04.169927 2017] [ssl:warn] [pid 1088:tid 624] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 19 02:45:04.693597 2017] [ssl:warn] [pid 1088:tid 624] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 19 02:45:04.746592 2017] [mpm_winnt:notice] [pid 1088:tid 624] AH00354: Child: Starting 150 worker threads.
and this is Service setting
Error appear error Dialogue
I am using window 10, can someone give the solve.

Apache server not responding on xampp

I know this question has been asked before, but I upgraded to windows 10. My xampp was working fine before the upgrade and now it is not. Apache does not run now. I had problems with skype before, so I removed it, which freed the port for apache.
2:06:09 PM [Apache] Port 80 in use by "Unable to open process" with PID 4!
2:06:09 PM [Apache] Apache WILL NOT start without the configured ports free!
2:06:09 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
2:06:09 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
Is there any way I can find out what is using that port and stop it? I have tried changing the port number in the config file to 8080, but it does not seem to work. Any ideas?
Here are the error logs after I changed the port to 8080:
[Thu Aug 27 14:10:10.207404 2015] [ssl:warn] [pid 3576:tid 524] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Aug 27 14:10:10.583181 2015] [ssl:warn] [pid 3576:tid 524] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Aug 27 14:10:10.755107 2015] [mpm_winnt:notice] [pid 3576:tid 524] AH00455: Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.6.11 configured -- resuming normal operations
[Thu Aug 27 14:10:10.755107 2015] [mpm_winnt:notice] [pid 3576:tid 524] AH00456: Apache Lounge VC11 Server built: Jul 12 2015 10:56:48
[Thu Aug 27 14:10:10.755107 2015] [core:notice] [pid 3576:tid 524] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/XAMPP/apache'
[Thu Aug 27 14:10:10.770732 2015] [mpm_winnt:notice] [pid 3576:tid 524] AH00418: Parent: Created child process 10308
[Thu Aug 27 14:10:12.035120 2015] [ssl:warn] [pid 10308:tid 572] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Aug 27 14:10:12.395328 2015] [ssl:warn] [pid 10308:tid 572] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Aug 27 14:10:12.535958 2015] [mpm_winnt:notice] [pid 10308:tid 572] AH00354: Child: Starting 150 worker threads.

Apache shutdown unexpectedly (changing ports not worked)

Xampp not runs apache,
IIS not installed on my system *(windows 8.1)* and ports 80 and 443 are free, tried to change ports to 45554 and 4430 but error exists! any idea?
7:04:00 PM [Apache] Error: Apache shutdown unexpectedly.
7:04:00 PM [Apache] This may be due to a blocked port, missing dependencies,
7:04:00 PM [Apache] improper privileges, a crash, or a shutdown by another method.
7:04:00 PM [Apache] Press the Logs button to view error logs and check
7:04:00 PM [Apache] the Windows Event Viewer for more clues
7:04:00 PM [Apache] If you need more help, copy and post this
7:04:00 PM [Apache] entire log window on the forums
[Sun Nov 24 19:04:00.000861 2013] [mpm_winnt:notice] [pid 36732:tid 380] AH00455: Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19 configured -- resuming normal operations
[Sun Nov 24 19:04:00.000861 2013] [mpm_winnt:notice] [pid 36732:tid 380] AH00456: Server built: Feb 23 2013 13:07:34
[Sun Nov 24 19:04:00.000861 2013] [core:notice] [pid 36732:tid 380] AH00094: Command line: 'f:\\xampp\\apache\\bin\\httpd.exe -d F:/xampp/apache'
[Sun Nov 24 19:04:00.001861 2013] [mpm_winnt:notice] [pid 36732:tid 380] AH00418: Parent: Created child process 33376
[Sun Nov 24 19:04:00.009866 2013] [:crit] [pid 33376] (-2146173795)Unknown error: AH00141: Could not initialize random number generator
[Sun Nov 24 19:04:00.012867 2013] [mpm_winnt:crit] [pid 36732:tid 380] AH00419: master_main: create child process failed. Exiting.
I assume the error is 'Could not initialize random number generator'
see this thread:
Apache: Could not initialize random number generator