I've tried again with similar results, there isn't much in the /var/log/httpd logs
Code: Select all
[root@hostname ~]# ls -lrt /var/log/httpd | tail
-rw-r--r--. 1 root root 0 Jan 28 03:30 ssl_request_log
-rw-r--r--. 1 root root 0 Jan 28 03:30 ssl_access_log
-rw-r--r--. 1 root root 0 Jan 28 03:30 access_log
-rw-r--r--. 1 root root 0 Feb 1 03:25 ssl_error_log
-rw-r--r--. 1 root root 2108 Feb 1 10:39 ssl_error_log-20180201
-rw-r--r--. 1 root root 9676 Feb 1 10:41 ssl_request_log-20180128
-rw-r--r--. 1 root root 9082 Feb 1 10:41 ssl_access_log-20180128
-rw-r--r--. 1 root root 48679 Feb 1 17:11 access_log-20180128
-rw-r--r--. 1 root root 10039 Feb 2 10:43 error_log-20180128
-rw-r--r--. 1 root root 2907 Feb 2 11:11 error_log
[root@hostname ~]# cat /var/log/httpd/error_log
[Fri Feb 02 10:44:50.458764 2018] [core:notice] [pid 5819] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Feb 02 10:44:50.460656 2018] [suexec:notice] [pid 5819] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 02 10:45:50.565947 2018] [auth_digest:notice] [pid 5819] AH01757: generating secret for digest authentication ...
[Fri Feb 02 10:45:50.567748 2018] [lbmethod_heartbeat:notice] [pid 5819] AH02282: No slotmem from mod_heartmonitor
[Fri Feb 02 10:45:50.591777 2018] [mpm_prefork:notice] [pid 5819] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Fri Feb 02 10:45:50.591823 2018] [core:notice] [pid 5819] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Feb 02 10:58:24.418814 2018] [core:notice] [pid 6075] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Feb 02 10:58:24.421609 2018] [suexec:notice] [pid 6075] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 02 10:59:24.524339 2018] [auth_digest:notice] [pid 6075] AH01757: generating secret for digest authentication ...
[Fri Feb 02 10:59:24.525948 2018] [lbmethod_heartbeat:notice] [pid 6075] AH02282: No slotmem from mod_heartmonitor
[Fri Feb 02 10:59:24.540125 2018] [core:warn] [pid 6075] AH00098: pid file /run/httpd/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Feb 02 10:59:24.545451 2018] [mpm_prefork:notice] [pid 6075] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Fri Feb 02 10:59:24.545501 2018] [core:notice] [pid 6075] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Feb 02 11:03:24.307932 2018] [core:notice] [pid 6192] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Feb 02 11:03:24.309941 2018] [suexec:notice] [pid 6192] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 02 11:10:39.505034 2018] [core:notice] [pid 6411] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Feb 02 11:10:39.506931 2018] [suexec:notice] [pid 6411] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 02 11:11:39.608416 2018] [auth_digest:notice] [pid 6411] AH01757: generating secret for digest authentication ...
[Fri Feb 02 11:11:39.610019 2018] [lbmethod_heartbeat:notice] [pid 6411] AH02282: No slotmem from mod_heartmonitor
[Fri Feb 02 11:11:39.624233 2018] [core:warn] [pid 6411] AH00098: pid file /run/httpd/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Feb 02 11:11:39.629192 2018] [mpm_prefork:notice] [pid 6411] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Fri Feb 02 11:11:39.630341 2018] [core:notice] [pid 6411] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[root@hostname ~]# cat /var/log/httpd/error_log-20180128
[Fri Feb 02 10:43:31.263463 2018] [mpm_prefork:notice] [pid 21655] AH00169: caught SIGTERM, shutting down
When I copied the httpd.service file into /etc/stsyemd I got a failure:
Code: Select all
[root@hostname ~]# systemctl status httpd.service
Failed to get properties: Access denied
With StartTimeoutSec=infinity it still timed out, with TimeoutSec=infinity it failed to load.
I had Environment=SYSTEMD_LOG_LEVEL=debug on for a while, but I'm not sure where that would log stuff.
Here's my session:
Code: Select all
[root@hostname ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: signal) since Fri 2018-02-02 10:46:50 GMT; 13s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 5819 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=KILL)
Main PID: 5819 (code=killed, signal=KILL)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
Feb 02 10:43:50 hostname systemd[1]: Starting The Apache HTTP Server...
Feb 02 10:45:20 hostname systemd[1]: httpd.service start operation timed out. Terminating.
Feb 02 10:46:50 hostname systemd[1]: httpd.service stop-final-sigterm timed out. Killing.
Feb 02 10:46:50 hostname systemd[1]: httpd.service: main process exited, code=killed, status=9/KILL
Feb 02 10:46:50 hostname systemd[1]: Failed to start The Apache HTTP Server.
Feb 02 10:46:50 hostname systemd[1]: Unit httpd.service entered failed state.
Feb 02 10:46:50 hostname systemd[1]: httpd.service failed.
[root@hostname ~]# journalctl -xe
-- Subject: A new session 73960 has been created for user webowner
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A new session with the ID 73960 has been created for the user webowner.
--
-- The leading process of the session is 5848.
Feb 02 10:45:55 hostname systemd[1]: Starting Session 73960 of user webowner.
-- Subject: Unit session-73960.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-73960.scope has begun starting up.
Feb 02 10:45:55 hostname sshd[5848]: pam_unix(sshd:session): session opened for user webowner by (uid=0)
Feb 02 10:46:39 hostname sshd[5878]: Accepted publickey for webowner from 172.21.1.6 port 47330 ssh2: DSA SHA256:dHhG7lBu1zLGNRuGhkpMcdMz5KMjNkiro08TNoVqATM
Feb 02 10:46:40 hostname systemd[1]: Started Session 73961 of user webowner.
-- Subject: Unit session-73961.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-73961.scope has finished starting up.
--
-- The start-up result is done.
Feb 02 10:46:40 hostname systemd-logind[603]: New session 73961 of user webowner.
-- Subject: A new session 73961 has been created for user webowner
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A new session with the ID 73961 has been created for the user webowner.
--
-- The leading process of the session is 5878.
Feb 02 10:46:40 hostname systemd[1]: Starting Session 73961 of user webowner.
-- Subject: Unit session-73961.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-73961.scope has begun starting up.
Feb 02 10:46:40 hostname sshd[5878]: pam_unix(sshd:session): session opened for user webowner by (uid=0)
Feb 02 10:46:40 hostname sshd[5882]: Received disconnect from 172.21.1.6 port 47330:11: disconnected by user
Feb 02 10:46:40 hostname sshd[5882]: Disconnected from 172.21.1.6 port 47330
Feb 02 10:46:40 hostname sshd[5878]: pam_unix(sshd:session): session closed for user webowner
Feb 02 10:46:50 hostname systemd[1]: httpd.service stop-final-sigterm timed out. Killing.
Feb 02 10:46:50 hostname systemd[1]: httpd.service: main process exited, code=killed, status=9/KILL
Feb 02 10:46:50 hostname systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Feb 02 10:46:50 hostname systemd[1]: Unit httpd.service entered failed state.
Feb 02 10:46:50 hostname systemd[1]: httpd.service failed.
Feb 02 10:46:50 hostname polkitd[604]: Unregistered Authentication Agent for unix-process:5813:396312781 (system bus name :1.148140, object path /org/freedesktop/PolicyKit1/Authenticatio
[root@hostname ~]# ls -lrt /var/log/httpd | tail
-rw-r--r--. 1 root root 0 Jan 28 03:30 ssl_request_log
-rw-r--r--. 1 root root 0 Jan 28 03:30 ssl_access_log
-rw-r--r--. 1 root root 0 Jan 28 03:30 access_log
-rw-r--r--. 1 root root 0 Feb 1 03:25 ssl_error_log
-rw-r--r--. 1 root root 2108 Feb 1 10:39 ssl_error_log-20180201
-rw-r--r--. 1 root root 9676 Feb 1 10:41 ssl_request_log-20180128
-rw-r--r--. 1 root root 9082 Feb 1 10:41 ssl_access_log-20180128
-rw-r--r--. 1 root root 48679 Feb 1 17:11 access_log-20180128
-rw-r--r--. 1 root root 10039 Feb 2 10:43 error_log-20180128
-rw-r--r--. 1 root root 781 Feb 2 10:45 error_log
[root@hostname ~]# cat /var/log/httpd/error_log
[Fri Feb 02 10:44:50.458764 2018] [core:notice] [pid 5819] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Feb 02 10:44:50.460656 2018] [suexec:notice] [pid 5819] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 02 10:45:50.565947 2018] [auth_digest:notice] [pid 5819] AH01757: generating secret for digest authentication ...
[Fri Feb 02 10:45:50.567748 2018] [lbmethod_heartbeat:notice] [pid 5819] AH02282: No slotmem from mod_heartmonitor
[Fri Feb 02 10:45:50.591777 2018] [mpm_prefork:notice] [pid 5819] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Fri Feb 02 10:45:50.591823 2018] [core:notice] [pid 5819] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[root@hostname ~]# tail /var/log/httpd/error_log-20180128
[Fri Feb 02 10:43:31.263463 2018] [mpm_prefork:notice] [pid 21655] AH00169: caught SIGTERM, shutting down
[root@hostname ~]# vi /etc/systemd/system/httpd.service
[root@hostname ~]# /bin/systemctl start httpd.service
Job for httpd.service failed because a fatal signal was delivered to the control process. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@hostname ~]# mv /usr/lib/systemd/system/httpd.service /usr/lib/systemd/system/httpd.service.nowinsystemd
[root@hostname ~]# /bin/systemctl start httpd.service
Failed to start httpd.service: Access denied
See system logs and 'systemctl status httpd.service' for details.
[root@hostname ~]# systemctl status httpd.service
Failed to get properties: Access denied
[root@hostname ~]# mv /etc/systemd/system/httpd.service /usr/lib/systemd/system/httpd.service
[root@hostname ~]# systemctl daemon-reload
[root@hostname ~]# /bin/systemctl start httpd.service
date
Job for httpd.service failed because a fatal signal was delivered to the control process. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@hostname ~]# date
Fri 2 Feb 11:04:04 GMT 2018
[root@hostname ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: signal) since Fri 2018-02-02 11:04:04 GMT; 1min 8s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 6192 (code=killed, signal=KILL)
Feb 02 11:02:24 hostname systemd[1]: Starting The Apache HTTP Server...
Feb 02 11:02:34 hostname systemd[1]: httpd.service start operation timed out. Terminating.
Feb 02 11:04:04 hostname systemd[1]: httpd.service stop-final-sigterm timed out. Killing.
Feb 02 11:04:04 hostname systemd[1]: httpd.service: main process exited, code=killed, status=9/KILL
Feb 02 11:04:04 hostname systemd[1]: Failed to start The Apache HTTP Server.
Feb 02 11:04:04 hostname systemd[1]: Unit httpd.service entered failed state.
Feb 02 11:04:04 hostname systemd[1]: httpd.service failed.
[root@hostname ~]# vi /usr/lib/systemd/system/httpd.service
[root@hostname ~]# systemctl daemon-reload
[root@hostname ~]# date; /bin/systemctl start httpd.service; date
Fri 2 Feb 11:06:44 GMT 2018
Job for httpd.service failed because a fatal signal was delivered to the control process. See "systemctl status httpd.service" and "journalctl -xe" for details.
Fri 2 Feb 11:06:44 GMT 2018
[root@hostname ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: signal) since Fri 2018-02-02 11:06:44 GMT; 16s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 6334 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=KILL)
Main PID: 6334 (code=killed, signal=KILL)
Feb 02 11:06:44 hostname systemd[1]: Starting The Apache HTTP Server...
Feb 02 11:06:44 hostname systemd[1]: httpd.service start operation timed out. Terminating.
Feb 02 11:06:44 hostname systemd[1]: httpd.service stop-final-sigterm timed out. Killing.
Feb 02 11:06:44 hostname systemd[1]: httpd.service: main process exited, code=killed, status=9/KILL
Feb 02 11:06:44 hostname systemd[1]: Failed to start The Apache HTTP Server.
Feb 02 11:06:44 hostname systemd[1]: Unit httpd.service entered failed state.
Feb 02 11:06:44 hostname systemd[1]: httpd.service failed.
[root@hostname ~]# journalctl -xe
Feb 02 11:08:00 hostname sshd[6340]: Accepted publickey for webowner from 172.21.1.6 port 58396 ssh2: DSA SHA256:dHhG7lBu1zLGNRuGhkpMcdMz5KMjNkiro08TNoVqATM
Feb 02 11:08:01 hostname systemd[1]: Started Session 73985 of user webowner.
-- Subject: Unit session-73985.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-73985.scope has finished starting up.
--
-- The start-up result is done.
Feb 02 11:08:01 hostname systemd-logind[603]: New session 73985 of user webowner.
-- Subject: A new session 73985 has been created for user webowner
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A new session with the ID 73985 has been created for the user webowner.
--
-- The leading process of the session is 6340.
Feb 02 11:08:01 hostname systemd[1]: Starting Session 73985 of user webowner.
-- Subject: Unit session-73985.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-73985.scope has begun starting up.
Feb 02 11:08:01 hostname sshd[6340]: pam_unix(sshd:session): session opened for user webowner by (uid=0)
Feb 02 11:08:01 hostname sshd[6345]: Received disconnect from 172.21.1.6 port 58396:11: disconnected by user
Feb 02 11:08:01 hostname sshd[6345]: Disconnected from 172.21.1.6 port 58396
Feb 02 11:08:01 hostname sshd[6340]: pam_unix(sshd:session): session closed for user webowner
Feb 02 11:08:15 hostname sshd[6342]: Accepted publickey for webowner from 172.21.1.6 port 58422 ssh2: DSA SHA256:dHhG7lBu1zLGNRuGhkpMcdMz5KMjNkiro08TNoVqATM
Feb 02 11:08:15 hostname systemd[1]: Started Session 73986 of user webowner.
-- Subject: Unit session-73986.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-73986.scope has finished starting up.
--
-- The start-up result is done.
Feb 02 11:08:15 hostname systemd-logind[603]: New session 73986 of user webowner.
-- Subject: A new session 73986 has been created for user webowner
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A new session with the ID 73986 has been created for the user webowner.
--
-- The leading process of the session is 6342.
Feb 02 11:08:15 hostname systemd[1]: Starting Session 73986 of user webowner.
-- Subject: Unit session-73986.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-73986.scope has begun starting up.
Feb 02 11:08:15 hostname sshd[6342]: pam_unix(sshd:session): session opened for user webowner by (uid=0)
Feb 02 11:08:15 hostname sshd[6357]: Received disconnect from 172.21.1.6 port 58422:11: disconnected by user
Feb 02 11:08:15 hostname sshd[6357]: Disconnected from 172.21.1.6 port 58422
Feb 02 11:08:15 hostname sshd[6342]: pam_unix(sshd:session): session closed for user webowner
[root@hostname ~]# vi /usr/lib/systemd/system/httpd.service
[root@hostname ~]# systemctl daemon-reload
[root@hostname ~]# date; /bin/systemctl start httpd.service; date
Fri 2 Feb 11:09:39 GMT 2018
Job for httpd.service failed because a fatal signal was delivered to the control process. See "systemctl status httpd.service" and "journalctl -xe" for details.
Fri 2 Feb 11:12:39 GMT 2018
[root@hostname ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: signal) since Fri 2018-02-02 11:12:39 GMT; 12s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 6411 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=KILL)
Main PID: 6411 (code=killed, signal=KILL)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
Feb 02 11:09:39 hostname systemd[1]: Starting The Apache HTTP Server...
Feb 02 11:11:09 hostname systemd[1]: httpd.service start operation timed out. Terminating.
Feb 02 11:12:39 hostname systemd[1]: httpd.service stop-final-sigterm timed out. Killing.
Feb 02 11:12:39 hostname systemd[1]: httpd.service: main process exited, code=killed, status=9/KILL
Feb 02 11:12:39 hostname systemd[1]: Failed to start The Apache HTTP Server.
Feb 02 11:12:39 hostname systemd[1]: Unit httpd.service entered failed state.
Feb 02 11:12:39 hostname systemd[1]: httpd.service failed.
[root@hostname ~]# journalctl -xe
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A new session with the ID 73990 has been created for the user webowner.
--
-- The leading process of the session is 6448.
Feb 02 11:12:22 hostname systemd[1]: Starting Session 73990 of user webowner.
-- Subject: Unit session-73990.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-73990.scope has begun starting up.
Feb 02 11:12:22 hostname sshd[6448]: pam_unix(sshd:session): session opened for user webowner by (uid=0)
Feb 02 11:12:22 hostname sshd[6453]: Received disconnect from 172.21.1.6 port 60796:11: disconnected by user
Feb 02 11:12:22 hostname sshd[6453]: Disconnected from 172.21.1.6 port 60796
Feb 02 11:12:22 hostname sshd[6448]: pam_unix(sshd:session): session closed for user webowner
Feb 02 11:12:39 hostname systemd[1]: httpd.service stop-final-sigterm timed out. Killing.
Feb 02 11:12:39 hostname systemd[1]: httpd.service: main process exited, code=killed, status=9/KILL
Feb 02 11:12:39 hostname systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Feb 02 11:12:39 hostname systemd[1]: Unit httpd.service entered failed state.
Feb 02 11:12:39 hostname systemd[1]: httpd.service failed.
Feb 02 11:12:39 hostname polkitd[604]: Unregistered Authentication Agent for unix-process:6405:396467682 (system bus name :1.148208, object path /org/freedesktop/PolicyKit1/Authenticatio
Feb 02 11:13:14 hostname sshd[6469]: Accepted publickey for webowner from 172.21.1.6 port 32850 ssh2: DSA SHA256:dHhG7lBu1zLGNRuGhkpMcdMz5KMjNkiro08TNoVqATM
Feb 02 11:13:14 hostname systemd[1]: Started Session 73991 of user webowner.
-- Subject: Unit session-73991.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-73991.scope has finished starting up.
--
-- The start-up result is done.
Feb 02 11:13:14 hostname systemd-logind[603]: New session 73991 of user webowner.
-- Subject: A new session 73991 has been created for user webowner
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A new session with the ID 73991 has been created for the user webowner.
--
-- The leading process of the session is 6469.
Feb 02 11:13:14 hostname systemd[1]: Starting Session 73991 of user webowner.
-- Subject: Unit session-73991.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-73991.scope has begun starting up.
Feb 02 11:13:14 hostname sshd[6469]: pam_unix(sshd:session): session opened for user webowner by (uid=0)
Feb 02 11:13:14 hostname sshd[6474]: Received disconnect from 172.21.1.6 port 32850:11: disconnected by user
Feb 02 11:13:14 hostname sshd[6474]: Disconnected from 172.21.1.6 port 32850
Feb 02 11:13:14 hostname sshd[6469]: pam_unix(sshd:session): session closed for user webowner
[root@hostname ~]# ls -lrt /var/log/httpd | tail
-rw-r--r--. 1 root root 0 Jan 28 03:30 ssl_request_log
-rw-r--r--. 1 root root 0 Jan 28 03:30 ssl_access_log
-rw-r--r--. 1 root root 0 Jan 28 03:30 access_log
-rw-r--r--. 1 root root 0 Feb 1 03:25 ssl_error_log
-rw-r--r--. 1 root root 2108 Feb 1 10:39 ssl_error_log-20180201
-rw-r--r--. 1 root root 9676 Feb 1 10:41 ssl_request_log-20180128
-rw-r--r--. 1 root root 9082 Feb 1 10:41 ssl_access_log-20180128
-rw-r--r--. 1 root root 48679 Feb 1 17:11 access_log-20180128
-rw-r--r--. 1 root root 10039 Feb 2 10:43 error_log-20180128
-rw-r--r--. 1 root root 2907 Feb 2 11:11 error_log
[root@hostname ~]# cat /var/log/httpd/error_log
[Fri Feb 02 10:44:50.458764 2018] [core:notice] [pid 5819] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Feb 02 10:44:50.460656 2018] [suexec:notice] [pid 5819] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 02 10:45:50.565947 2018] [auth_digest:notice] [pid 5819] AH01757: generating secret for digest authentication ...
[Fri Feb 02 10:45:50.567748 2018] [lbmethod_heartbeat:notice] [pid 5819] AH02282: No slotmem from mod_heartmonitor
[Fri Feb 02 10:45:50.591777 2018] [mpm_prefork:notice] [pid 5819] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Fri Feb 02 10:45:50.591823 2018] [core:notice] [pid 5819] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Feb 02 10:58:24.418814 2018] [core:notice] [pid 6075] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Feb 02 10:58:24.421609 2018] [suexec:notice] [pid 6075] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 02 10:59:24.524339 2018] [auth_digest:notice] [pid 6075] AH01757: generating secret for digest authentication ...
[Fri Feb 02 10:59:24.525948 2018] [lbmethod_heartbeat:notice] [pid 6075] AH02282: No slotmem from mod_heartmonitor
[Fri Feb 02 10:59:24.540125 2018] [core:warn] [pid 6075] AH00098: pid file /run/httpd/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Feb 02 10:59:24.545451 2018] [mpm_prefork:notice] [pid 6075] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Fri Feb 02 10:59:24.545501 2018] [core:notice] [pid 6075] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Feb 02 11:03:24.307932 2018] [core:notice] [pid 6192] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Feb 02 11:03:24.309941 2018] [suexec:notice] [pid 6192] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 02 11:10:39.505034 2018] [core:notice] [pid 6411] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Feb 02 11:10:39.506931 2018] [suexec:notice] [pid 6411] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 02 11:11:39.608416 2018] [auth_digest:notice] [pid 6411] AH01757: generating secret for digest authentication ...
[Fri Feb 02 11:11:39.610019 2018] [lbmethod_heartbeat:notice] [pid 6411] AH02282: No slotmem from mod_heartmonitor
[Fri Feb 02 11:11:39.624233 2018] [core:warn] [pid 6411] AH00098: pid file /run/httpd/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Feb 02 11:11:39.629192 2018] [mpm_prefork:notice] [pid 6411] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Fri Feb 02 11:11:39.630341 2018] [core:notice] [pid 6411] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[root@hostname ~]# cat /var/log/httpd/error_log-20180128
[Fri Feb 02 10:43:31.263463 2018] [mpm_prefork:notice] [pid 21655] AH00169: caught SIGTERM, shutting down
[root@hostname ~]# nohup /usr/sbin/httpd -k start -DFOREGROUND &
[1] 6567
[root@hostname ~]# nohup: ignoring input and appending output to ‘nohup.out’
[root@hostname ~]# cat /usr/lib/systemd/system/httpd.service
[Unit]
Description=The Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
Documentation=man:httpd(8)
Documentation=man:apachectl(8)
[Service]
Type=notify
EnvironmentFile=/etc/sysconfig/httpd
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
ExecStop=/bin/kill -WINCH ${MAINPID}
# We want systemd to give httpd some time to finish gracefully, but still want
# it to kill httpd after TimeoutStopSec if something went wrong during the
# graceful stop. Normally, Systemd sends SIGTERM signal right after the
# ExecStop, which would kill httpd. We are sending useless SIGCONT here to give
# httpd time to finish.
KillSignal=SIGCONT
PrivateTmp=true
#Environment=SYSTEMD_LOG_LEVEL=debug
#TimeoutSec=infinity
[Install]
WantedBy=multi-user.target