Apache shutdown unexpectedly (changing ports not worked) - apache

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

Related

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.

WAMP - Your port 80 is not actually used

I was using wamp server for a long,but suddenly today it stopped working.
When i start wamp the icon doesnt turn to green it stays with orange.
I dont have skype and i have disabled IIS from windows features.but still it doesnt work.
i checked apache error log it shows the following:
[Mon Jan 27 14:07:42.369461 2014] [mpm_winnt:notice] [pid 6220:tid 404] AH00455: Apache/2.4.4 (Win64) PHP/5.4.12 configured -- resuming normal operations
[Mon Jan 27 14:07:42.414463 2014] [mpm_winnt:notice] [pid 6220:tid 404] AH00456: Server built: Feb 22 2013 22:08:37
[Mon Jan 27 14:07:42.414463 2014] [core:notice] [pid 6220:tid 404] AH00094: Command line: 'c:\wamp\bin\apache\apache2.4.4\bin\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4'
[Mon Jan 27 14:07:42.417464 2014] [mpm_winnt:notice] [pid 6220:tid 404] AH00418: Parent: Created child process 6384
[Mon Jan 27 14:07:42.441465 2014] [:crit] [pid 6384] (-2146173818)Unknown error: AH00141: Could not initialize random number generator
[Mon Jan 27 14:07:42.443465 2014] [mpm_winnt:crit] [pid 6220:tid 404] AH00419: master_main: create child process failed. Exiting.
This may sound silly, but check your Windows PATH setting for odd characters.
This has been caused in the past by a corruption of the PATH.

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.

Error after updating Apache on Ubuntu 13.04 (Raring Ringtail)

I have an error after updating my packages. When trying to start my webserver, it throws the following error.
$ sudo service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 84 of /etc/apache2/apache2.conf:
Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
And the Apache error log is (from file /var/log/apache2/error.log):
[Sat Aug 17 01:30:03 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.17RC1 configured -- resuming normal operations
[Sat Aug 17 01:41:38 2013] [notice] caught SIGTERM, shutting down
[Sat Aug 17 03:10:11.132425 2013] [mpm_prefork:notice] [pid 4182] AH00163: Apache/2.4.6 (Ubuntu) PHP/5.5.1-2+debphp.org~raring+2 configured -- resuming normal operations
[Sat Aug 17 03:10:11.143718 2013] [core:notice] [pid 4182] AH00094: Command line: '/usr/sbin/apache2'
[Sat Aug 17 03:13:56.527245 2013] [mpm_prefork:notice] [pid 4182] AH00169: caught SIGTERM, shutting down
What things do I have to do to recover or fix my server up?
Replace in apache2.conf:
LockFile /var/lock/apache2/accept.lock
with
Mutex file:${APACHE_LOCK_DIR} default
Actually, it is better to use a semaphore. Under Unix systems it is a lot faster and uses fewer resources.
And the option is just this:
Mutex sem

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..