failure apache2 http server - apache

I don't understand a single thing of this. All I know and randomly happen and shut down my website. I can restart it but it always come back.
I can provide more details if you guys want to help. Thank you
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Sun 2020-02-16 13:47:11 CET; 32min ago
Process: 5622 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 5633 (code=exited, status=1/FAILURE)
Feb 16 13:21:26 vps754970 systemd[1]: Starting The Apache HTTP Server...
Feb 16 13:21:27 vps754970 systemd[1]: Started The Apache HTTP Server.
Feb 16 13:47:11 vps754970 systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE
Feb 16 13:47:11 vps754970 systemd[1]: apache2.service: Failed with result 'exit-code'.
That's my /var/log/apache2/error.log
[Sun Feb 16 13:21:27.135958 2020] [core:warn] [pid 5633] AH00098: pid file /var/run/apache2/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Feb 16 13:21:27.173307 2020] [mpm_prefork:notice] [pid 5633] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Feb 16 13:21:27.173349 2020] [core:notice] [pid 5633] AH00094: Command line: '/usr/sbin/apache2'
[Sun Feb 16 13:47:08.362978 2020] [mpm_prefork:emerg] [pid 5660] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Sun Feb 16 13:47:08.367067 2020] [mpm_prefork:emerg] [pid 5662] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Sun Feb 16 13:47:08.382882 2020] [mpm_prefork:emerg] [pid 5657] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Sun Feb 16 13:47:08.382622 2020] [mpm_prefork:emerg] [pid 5656] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Sun Feb 16 13:47:08.606868 2020] [mpm_prefork:emerg] [pid 5663] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Sun Feb 16 13:47:08.804351 2020] [mpm_prefork:emerg] [pid 5655] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Sun Feb 16 13:47:11.493608 2020] [core:alert] [pid 5633] AH00050: Child 5655 returned a Fatal error... Apache is exiting!
[Sun Feb 16 13:47:11.493772 2020] [:emerg] [pid 5633] AH02818: MPM run failed, exiting

Related

Apache Not Loading Websites and Not loading Locally

Apache2 service able to restart, no error.
Apache stops loading web page after restarting the server (Azure VM)
Status as below:
systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Sun 2022-11-13 14:36:18 IST; 2min 27s ago
Process: 869255 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 487777 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Process: 869260 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 869280 (apache2)
Tasks: 6 (limit: 19193)
CGroup: /system.slice/apache2.service
├─869280 /usr/sbin/apache2 -k start
├─869287 /usr/sbin/apache2 -k start
├─869288 /usr/sbin/apache2 -k start
├─869289 /usr/sbin/apache2 -k start
├─869290 /usr/sbin/apache2 -k start
└─869291 /usr/sbin/apache2 -k start
Nov 13 14:36:17 nagios3-active systemd[1]: Starting The Apache HTTP Server...
Nov 13 14:36:18 nagios3-active systemd[1]: Started The Apache HTTP Server.
Web Page Error while browsing:
The connection to the server was reset while the page was loading.
Error logs:
[Sun Nov 13 13:19:37.431191 2022] [core:notice] [pid 191629] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 13 13:25:19.472411 2022] [mpm_prefork:notice] [pid 191629] AH00169: caught SIGTERM, shutting down
[Sun Nov 13 13:25:19.613453 2022] [mpm_prefork:notice] [pid 235744] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Nov 13 13:25:19.613515 2022] [core:notice] [pid 235744] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 13 13:44:17.190859 2022] [mpm_prefork:notice] [pid 235744] AH00169: caught SIGTERM, shutting down
[Sun Nov 13 13:44:17.297688 2022] [mpm_prefork:notice] [pid 404885] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Nov 13 13:44:17.297743 2022] [core:notice] [pid 404885] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 13 13:49:05.478423 2022] [mpm_prefork:notice] [pid 404885] AH00169: caught SIGTERM, shutting down
[Sun Nov 13 13:49:05.633070 2022] [mpm_prefork:notice] [pid 447609] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Nov 13 13:49:05.633131 2022] [core:notice] [pid 447609] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 13 13:49:32.645430 2022] [mpm_prefork:notice] [pid 447609] AH00169: caught SIGTERM, shutting down
[Sun Nov 13 13:49:32.746787 2022] [mpm_prefork:notice] [pid 451712] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Nov 13 13:49:32.746853 2022] [core:notice] [pid 451712] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 13 13:53:42.128582 2022] [mpm_prefork:notice] [pid 451712] AH00171: Graceful restart requested, doing restart
[Sun Nov 13 13:53:42.186683 2022] [mpm_prefork:notice] [pid 451712] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Nov 13 13:53:42.186701 2022] [core:notice] [pid 451712] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 13 14:30:09.805370 2022] [mpm_prefork:notice] [pid 451712] AH00169: caught SIGTERM, shutting down
[Sun Nov 13 14:30:09.910778 2022] [mpm_prefork:notice] [pid 813958] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Nov 13 14:30:09.910842 2022] [core:notice] [pid 813958] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 13 14:36:17.959872 2022] [mpm_prefork:notice] [pid 813958] AH00169: caught SIGTERM, shutting down
[Sun Nov 13 14:36:18.084923 2022] [mpm_prefork:notice] [pid 869280] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Nov 13 14:36:18.084985 2022] [core:notice] [pid 869280] AH00094: Command line: '/usr/sbin/apache2'
Tried Restarting the Apache2 services.

Apache server will not start, but works while it's "Activating" and does not give any meaningful errors

Apache 2.4.6
RHEL 7.9
PHP 7.4.30
Running this in a Google VM!
Ran "apachectl configtest" and got a "Syntax OK" message. Turned debug logging on in httpd.conf and started the process.
This is the output of systemctl status httpd
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: activating (start) since Tue 2022-08-23 22:59:59 UTC; 7s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 1866 (httpd)
CGroup: /system.slice/httpd.service
├─1866 /usr/sbin/httpd -DFOREGROUND
├─1867 /usr/sbin/httpd -DFOREGROUND
├─1868 /usr/sbin/httpd -DFOREGROUND
├─1869 /usr/sbin/httpd -DFOREGROUND
├─1870 /usr/sbin/httpd -DFOREGROUND
└─1871 /usr/sbin/httpd -DFOREGROUND
Here is the output in error_log:
[Tue Aug 23 22:59:59.144963 2022] [core:notice] [pid 1866] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Aug 23 22:59:59.146252 2022] [suexec:notice] [pid 1866] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Aug 23 22:59:59.183943 2022] [core:warn] [pid 1866] AH00098: pid file /etc/httpd/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Aug 23 22:59:59.187253 2022] [proxy:debug] [pid 1867] proxy_util.c(1843): AH00925: initializing worker proxy:reverse shared
[Tue Aug 23 22:59:59.187346 2022] [proxy:debug] [pid 1867] proxy_util.c(1888): AH00927: initializing worker proxy:reverse local
[Tue Aug 23 22:59:59.187378 2022] [proxy:debug] [pid 1867] proxy_util.c(1939): AH00931: initialized single connection worker in child 1867 for (*)
[Tue Aug 23 22:59:59.188948 2022] [proxy:debug] [pid 1868] proxy_util.c(1843): AH00925: initializing worker proxy:reverse shared
[Tue Aug 23 22:59:59.189021 2022] [proxy:debug] [pid 1868] proxy_util.c(1888): AH00927: initializing worker proxy:reverse local
[Tue Aug 23 22:59:59.189047 2022] [proxy:debug] [pid 1868] proxy_util.c(1939): AH00931: initialized single connection worker in child 1868 for (*)
[Tue Aug 23 22:59:59.190495 2022] [proxy:debug] [pid 1869] proxy_util.c(1843): AH00925: initializing worker proxy:reverse shared
[Tue Aug 23 22:59:59.190562 2022] [proxy:debug] [pid 1869] proxy_util.c(1888): AH00927: initializing worker proxy:reverse local
[Tue Aug 23 22:59:59.190596 2022] [proxy:debug] [pid 1869] proxy_util.c(1939): AH00931: initialized single connection worker in child 1869 for (*)
[Tue Aug 23 22:59:59.190866 2022] [mpm_prefork:notice] [pid 1866] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) PHP/7.4.30 configured -- resuming normal operations
[Tue Aug 23 22:59:59.190886 2022] [mpm_prefork:info] [pid 1866] AH00164: Server built: Mar 22 2022 15:35:18
[Tue Aug 23 22:59:59.190901 2022] [core:notice] [pid 1866] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Aug 23 22:59:59.190921 2022] [mpm_prefork:debug] [pid 1866] prefork.c(1005): AH00165: Accept mutex: sysvsem (default: sysvsem)
[Tue Aug 23 22:59:59.192147 2022] [proxy:debug] [pid 1870] proxy_util.c(1843): AH00925: initializing worker proxy:reverse shared
[Tue Aug 23 22:59:59.192152 2022] [proxy:debug] [pid 1871] proxy_util.c(1843): AH00925: initializing worker proxy:reverse shared
[Tue Aug 23 22:59:59.192217 2022] [proxy:debug] [pid 1871] proxy_util.c(1888): AH00927: initializing worker proxy:reverse local
[Tue Aug 23 22:59:59.192253 2022] [proxy:debug] [pid 1871] proxy_util.c(1939): AH00931: initialized single connection worker in child 1871 for (*)
[Tue Aug 23 22:59:59.192298 2022] [proxy:debug] [pid 1870] proxy_util.c(1888): AH00927: initializing worker proxy:reverse local
[Tue Aug 23 22:59:59.192332 2022] [proxy:debug] [pid 1870] proxy_util.c(1939): AH00931: initialized single connection worker in child 1870 for (*)
Plugging the server IP in a web browser loads the page with no issues. However, after a little while, the start process will timeout and the app will exit.
What am I missing?
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: signal) since Tue 2022-08-23 23:02:59 UTC; 15s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 1866 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=KILL)
Main PID: 1866 (code=killed, signal=KILL)
Aug 23 22:59:59 instance-1 systemd[1]: Starting The Apache HTTP Server...
Aug 23 23:01:29 instance-1 systemd[1]: httpd.service start operation timed out. Terminating.
Aug 23 23:02:59 instance-1 systemd[1]: httpd.service stop-sigterm timed out. Killing.
Aug 23 23:02:59 instance-1 systemd[1]: httpd.service: main process exited, code=killed, status=9/KILL
Aug 23 23:02:59 instance-1 systemd[1]: Failed to start The Apache HTTP Server.
Aug 23 23:02:59 instance-1 systemd[1]: Unit httpd.service entered failed state.
Aug 23 23:02:59 instance-1 systemd[1]: httpd.service failed.
Hah... I found the solution. Needed to load the systemd_module. I added this line in httpd.conf...
LoadModule systemd_module modules/mod_systemd.so
... and viola - it works.

Apache start error -

Getting following error while starting the Apache. Tried all possible things found on Stackoverflow or google -
[Thu Jun 14 05:03:22.973799 2018] [ssl:trace2] [pid 13154] ssl_engine_rand.c(126): Init: Seeding PRNG with 144 bytes of entropy
[Thu Jun 14 05:03:22.973834 2018] [ssl:info] [pid 13154] AH01887: Init: Initializing (virtual) servers for SSL
[Thu Jun 14 05:03:22.973840 2018] [ssl:info] [pid 13154] AH01876: mod_ssl/2.4.25 compiled against Server: Apache/2.4.25, Library: OpenSSL/1.0.2h
[Thu Jun 14 05:03:22.973858 2018] [http2:debug] [pid 13154] mod_http2.c(103): AH03089: initializing post config dry run
[Thu Jun 14 05:03:22.974292 2018] [core:emerg] [pid 13154] (22)Invalid argument: AH00024: Couldn't set permissions on the rewrite-map mutex; check User and Group directives
AH00016: Configuration Failed

Centos httpd apache http server fails to start

I have open stack running and it was working fine I've rebooted and since have been unable to restart httpd
[root#h30 ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─openstack-dashboard.conf
Active: failed (Result: exit-code) since Thu 2016-09-01 14:11:07 BST; 2min 13s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 10030 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 10027 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Process: 9944 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force (code=exited, status=0/SUCCESS)
Process: 9919 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear (code=exited, status=0/SUCCESS)
Main PID: 10027 (code=exited, status=1/FAILURE)
Sep 01 14:10:46 h30 python[9919]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/help-panel/help...ive.js'
Sep 01 14:10:46 h30 python[9919]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/help-panel/help...pec.js'
Sep 01 14:10:46 h30 python[9919]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/help-panel/help...l.html'
Sep 01 14:10:46 h30 python[9919]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/help-panel/help...ule.js'
Sep 01 14:10:46 h30 python[9919]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/help-panel/help...pec.js'
Sep 01 14:11:07 h30 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 01 14:11:07 h30 systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 01 14:11:07 h30 systemd[1]: Failed to start The Apache HTTP Server.
Sep 01 14:11:07 h30 systemd[1]: Unit httpd.service entered failed state.
Sep 01 14:11:07 h30 systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
and I have no idea whats causing the issue to be honest, any help would be great.
Here is the error log
[Wed Aug 31 17:23:03.796739 2016] [core:notice] [pid 4346] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Aug 31 17:23:06.653781 2016] [mpm_prefork:notice] [pid 4346] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 17:23:31.884455 2016] [core:notice] [pid 7547] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Aug 31 17:23:31.885805 2016] [suexec:notice] [pid 7547] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Aug 31 17:23:31.902192 2016] [so:warn] [pid 7547] AH01574: module php5_module is already loaded, skipping
[Wed Aug 31 17:23:31.902233 2016] [so:warn] [pid 7547] AH01574: module wsgi_module is already loaded, skipping
[Wed Aug 31 17:23:31.905613 2016] [auth_digest:notice] [pid 7547] AH01757: generating secret for digest authentication ...
[Wed Aug 31 17:23:32.100865 2016] [mpm_prefork:notice] [pid 7547] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Wed Aug 31 17:23:32.100922 2016] [core:notice] [pid 7547] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Aug 31 18:35:11.515126 2016] [mpm_prefork:notice] [pid 7547] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Aug 31 19:22:27.955740 2016] [core:notice] [pid 17956] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Aug 31 19:22:27.968206 2016] [suexec:notice] [pid 17956] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Aug 31 19:22:27.984913 2016] [so:warn] [pid 17956] AH01574: module php5_module is already loaded, skipping
[Wed Aug 31 19:22:27.984949 2016] [so:warn] [pid 17956] AH01574: module wsgi_module is already loaded, skipping
[Wed Aug 31 19:22:27.988204 2016] [auth_digest:notice] [pid 17956] AH01757: generating secret for digest authentication ...
[Wed Aug 31 19:22:28.303754 2016] [mpm_prefork:notice] [pid 17956] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Wed Aug 31 19:22:28.303816 2016] [core:notice] [pid 17956] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 09:35:49.397054 2016] [core:notice] [pid 20080] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Sep 01 09:35:49.399094 2016] [suexec:notice] [pid 20080] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 01 09:35:49.415550 2016] [so:warn] [pid 20080] AH01574: module php5_module is already loaded, skipping
[Thu Sep 01 09:35:49.415588 2016] [so:warn] [pid 20080] AH01574: module wsgi_module is already loaded, skipping
[Thu Sep 01 09:35:49.418833 2016] [auth_digest:notice] [pid 20080] AH01757: generating secret for digest authentication ...
[Thu Sep 01 09:35:49.712957 2016] [mpm_prefork:notice] [pid 20080] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Thu Sep 01 09:35:49.713022 2016] [core:notice] [pid 20080] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 10:19:18.114919 2016] [mpm_prefork:notice] [pid 20080] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Sep 01 10:22:37.210697 2016] [core:notice] [pid 5401] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Sep 01 10:22:37.212740 2016] [suexec:notice] [pid 5401] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 01 10:22:37.228616 2016] [so:warn] [pid 5401] AH01574: module php5_module is already loaded, skipping
[Thu Sep 01 10:22:37.228654 2016] [so:warn] [pid 5401] AH01574: module wsgi_module is already loaded, skipping
[Thu Sep 01 10:22:37.231944 2016] [auth_digest:notice] [pid 5401] AH01757: generating secret for digest authentication ...
[Thu Sep 01 10:22:37.522692 2016] [mpm_prefork:notice] [pid 5401] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Thu Sep 01 10:22:37.522741 2016] [core:notice] [pid 5401] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 13:20:14.419086 2016] [mpm_prefork:notice] [pid 5401] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Sep 01 13:20:48.116596 2016] [core:notice] [pid 41924] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Sep 01 13:20:48.118260 2016] [suexec:notice] [pid 41924] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 01 13:20:48.133601 2016] [so:warn] [pid 41924] AH01574: module php5_module is already loaded, skipping
[Thu Sep 01 13:20:48.133632 2016] [so:warn] [pid 41924] AH01574: module wsgi_module is already loaded, skipping
[Thu Sep 01 13:20:48.136768 2016] [auth_digest:notice] [pid 41924] AH01757: generating secret for digest authentication ...
[Thu Sep 01 13:20:48.396768 2016] [mpm_prefork:notice] [pid 41924] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Thu Sep 01 13:20:48.396822 2016] [core:notice] [pid 41924] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 13:21:00.502249 2016] [mpm_prefork:notice] [pid 41924] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Sep 01 13:21:25.497407 2016] [core:notice] [pid 44854] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Sep 01 13:21:25.498739 2016] [suexec:notice] [pid 44854] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 01 13:21:25.514803 2016] [so:warn] [pid 44854] AH01574: module php5_module is already loaded, skipping
[Thu Sep 01 13:21:25.514842 2016] [so:warn] [pid 44854] AH01574: module wsgi_module is already loaded, skipping
[Thu Sep 01 13:21:25.518264 2016] [auth_digest:notice] [pid 44854] AH01757: generating secret for digest authentication ...
[Thu Sep 01 13:21:25.709404 2016] [mpm_prefork:notice] [pid 44854] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Thu Sep 01 13:21:25.709456 2016] [core:notice] [pid 44854] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 13:27:32.427493 2016] [mpm_prefork:notice] [pid 44854] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Sep 01 13:30:35.056150 2016] [core:notice] [pid 5096] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Sep 01 13:30:35.058238 2016] [suexec:notice] [pid 5096] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 01 13:30:35.075005 2016] [so:warn] [pid 5096] AH01574: module php5_module is already loaded, skipping
[Thu Sep 01 13:30:35.075040 2016] [so:warn] [pid 5096] AH01574: module wsgi_module is already loaded, skipping
[Thu Sep 01 13:30:35.078421 2016] [auth_digest:notice] [pid 5096] AH01757: generating secret for digest authentication ...
[Thu Sep 01 13:30:35.374300 2016] [mpm_prefork:notice] [pid 5096] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Thu Sep 01 13:30:35.374357 2016] [core:notice] [pid 5096] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Sep 01 13:37:17.885730 2016] [mpm_prefork:notice] [pid 5096] AH00170: caught SIGWINCH, shutting down gracefully
Have you made any configuration changes? Does just rebooting the system is causing the issue? The error log does not showing any error.Can you enable the 'debug' level logging and try to restart your httpd service? and share the logs.
From the logs it seems you apache was started but immediately after few seconds it's shutdown.So,something is causing this shutdown.Have you configured any cron job for such service?
Thu Sep 01 13:20:48.396768 2016] [mpm_prefork:notice] [pid 41924] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
...
[Thu Sep 01 13:21:00.502249 2016] [mpm_prefork:notice] [pid 41924] AH00170: caught SIGWINCH, shutting down gracefully
Turns out SSLSessionCache was causing the issue
I had to go into /etc/httpd/conf.d ssl.conf
and comment out
#SSLSessionCache shmcb:/run/httpd/sslcache(512000)

amazon ec2 apache crash

my apache server on amazon ec2 crashes for some reason,
[Tue Jun 18 09:28:26.008659 2013] [core:notice] [pid 4806] AH00052: child pid 6226 exit signal Segmentation fault (11)
[Tue Jun 18 09:28:26.008735 2013] [core:notice] [pid 4806] AH00052: child pid 6227 exit signal Segmentation fault (11)
[Tue Jun 18 09:28:26.008752 2013] [core:notice] [pid 4806] AH00052: child pid 6228 exit signal Segmentation fault (11)
[Tue Jun 18 09:28:28.017033 2013] [core:notice] [pid 4806] AH00052: child pid 6151 exit signal Segmentation fault (11)
[Tue Jun 18 09:28:46.035989 2013] [core:notice] [pid 4806] AH00052: child pid 6120 exit signal Segmentation fault (11)
[Tue Jun 18 09:28:47.388781 2013] [mpm_prefork:notice] [pid 4806] AH00169: caught SIGTERM, shutting down
[Tue Jun 18 09:28:51.712473 2013] [ssl:warn] [pid 6276] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue Jun 18 09:28:51.891491 2013] [ssl:warn] [pid 6277] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue Jun 18 09:28:51.891584 2013] [lbmethod_heartbeat:notice] [pid 6277] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 18 09:28:51.943536 2013] [mpm_prefork:notice] [pid 6277] AH00163: Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.12 configured -- resuming normal operations
what is causing that and what can i do ?
From what you posted, it looks like this the problem:
"Apache exit signal Segmentation fault (11)" [This is what you need to google]
Check if you have enough resources(Memory(free -m) and disk-space).
Then, if still stuck, you may want create dump as explained below and dig into that dump
Section: Debugging intermittent crashes
http://httpd.apache.org/dev/debugging.html