Question

HTTPD will not restart after installing PHP from LAMP tutorials

  • Posted on November 16, 2014
  • lindu2Asked by lindu2

Hi Guys please help, I followed the tut on How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Arch Linux

everything went ok apart from after installing PHP, the install went ok but when I added the text below to /etc/httpd/conf/httpd.conf

Use for PHP 5.x:

LoadModule php5_module modules/libphp5.so AddHandler php5-script php Include conf/extra/php5_module.conf

httpd will not restart I get the message:- Job for httpd.service failed. See “systemctl status httpd.service” and “journalctl -xe” for details.

if I comment out the line below from http.conf, only then will httpd.service restart :- LoadModule php5_module modules/libphp5.so

Please can someone help this is my 5th attempt at LAMP.

many Thanks Lindu2

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello guys,

I am getting the following error on sudo systemctl restart httpd:

Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details

After doing these:

systemctl status httpd.service
journalctl -xe

I got these:

-- Unit httpd.service has begun starting up.
Apr 18 09:28:25 zframework httpd[12815]: [Mon Apr 18 09:28:25.526775 2016] [so:warn] [pid 12815] AH01574: module mpm_prefork_module is already loaded, skipping
Apr 18 09:28:25 zframework httpd[12815]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 18 09:28:25 zframework httpd[12815]: no listening sockets available, shutting down
Apr 18 09:28:25 zframework httpd[12815]: AH00015: Unable to open logs
Apr 18 09:28:25 zframework systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 09:28:25 zframework kill[12816]: kill: cannot find process ""
Apr 18 09:28:25 zframework systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 09:28:25 zframework 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.
Apr 18 09:28:25 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:25 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:25 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586, object path /org/freedesktop/PolicyKi
Apr 18 09:28:32 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): DHCPv4 request timed out.
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed unknown -> timeout
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): canceled DHCP transaction, DHCP client pid 12794
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed timeout -> done
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  Disabling autoconnect for connection 'Wired connection 1'.
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): Activation: failed for connection 'Wired connection 1'
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 18 09:28:41 zframework avahi-daemon[459]: Withdrawing address record for fe80::601:c6ff:febb:ed02 on eth1.
~
~
~
~
~
~
~
~
~
lines 1195-1228/1228 (END)
[root@zframework ~]# clear

[root@zframework ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2016-04-18 09:28:25 EDT; 3min 15s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 12816 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 12815 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 12815 (code=exited, status=1/FAILURE)

Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 18 09:28:25 zframework httpd[12815]: no listening sockets available, shutting down
Apr 18 09:28:25 zframework httpd[12815]: AH00015: Unable to open logs
Apr 18 09:28:25 zframework systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 09:28:25 zframework kill[12816]: kill: cannot find process ""
Apr 18 09:28:25 zframework systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 09:28:25 zframework systemd[1]: Failed to start The Apache HTTP Server.
Apr 18 09:28:25 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:25 zframework systemd[1]: httpd.service failed.
[root@zframework ~]# journalctl -xe
Apr 18 09:28:08 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:08 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:08 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12798:88671302 (system bus name :1.585, object path /org/freedesktop/PolicyKi
Apr 18 09:28:12 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20 (xid=0x5ad1d934)
Apr 18 09:28:25 zframework sudo[12809]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl restart httpd.service
Apr 18 09:28:25 zframework polkitd[500]: Registered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586 [/usr/bin/pkttyagent --notify-fd 5 --fal
Apr 18 09:28:25 zframework systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
Apr 18 09:28:25 zframework httpd[12815]: [Mon Apr 18 09:28:25.526775 2016] [so:warn] [pid 12815] AH01574: module mpm_prefork_module is already loaded, skipping
Apr 18 09:28:25 zframework httpd[12815]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 18 09:28:25 zframework httpd[12815]: no listening sockets available, shutting down
Apr 18 09:28:25 zframework httpd[12815]: AH00015: Unable to open logs
Apr 18 09:28:25 zframework systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 09:28:25 zframework kill[12816]: kill: cannot find process ""
Apr 18 09:28:25 zframework systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 09:28:25 zframework 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.
Apr 18 09:28:25 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:25 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:25 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586, object path /org/freedesktop/PolicyKi
Apr 18 09:28:32 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): DHCPv4 request timed out.
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed unknown -> timeout
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): canceled DHCP transaction, DHCP client pid 12794
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed timeout -> done
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  Disabling autoconnect for connection 'Wired connection 1'.
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): Activation: failed for connection 'Wired connection 1'
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 18 09:28:41 zframework avahi-daemon[459]: Withdrawing address record for fe80::601:c6ff:febb:ed02 on eth1.
lines 1186-1228/1228 (END)
Apr 18 09:28:08 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:08 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:08 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12798:88671302 (system bus name :1.585, object path /org/freedesktop/PolicyKit1
Apr 18 09:28:12 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20 (xid=0x5ad1d934)
Apr 18 09:28:25 zframework sudo[12809]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl restart httpd.service
Apr 18 09:28:25 zframework polkitd[500]: Registered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586 [/usr/bin/pkttyagent --notify-fd 5 --fallb
Apr 18 09:28:25 zframework systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
Apr 18 09:28:25 zframework httpd[12815]: [Mon Apr 18 09:28:25.526775 2016] [so:warn] [pid 12815] AH01574: module mpm_prefork_module is already loaded, skipping
Apr 18 09:28:25 zframework httpd[12815]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive g
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 18 09:28:25 zframework httpd[12815]: no listening sockets available, shutting down
Apr 18 09:28:25 zframework httpd[12815]: AH00015: Unable to open logs
Apr 18 09:28:25 zframework systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 09:28:25 zframework kill[12816]: kill: cannot find process ""
Apr 18 09:28:25 zframework systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 09:28:25 zframework 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.
Apr 18 09:28:25 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:25 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:25 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586, object path /org/freedesktop/PolicyKit1
Apr 18 09:28:32 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): DHCPv4 request timed out.
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed unknown -> timeout
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): canceled DHCP transaction, DHCP client pid 12794
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed timeout -> done
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  Disabling autoconnect for connection 'Wired connection 1'.
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): Activation: failed for connection 'Wired connection 1'
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 18 09:28:41 zframework avahi-daemon[459]: Withdrawing address record for fe80::601:c6ff:febb:ed02 on eth1.
~
lines 1186-1228/1228 (END)










Apr 18 09:28:08 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:08 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:08 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12798:88671302 (system bus name :1.585, object path /org/freedesktop/PolicyKit1/
Apr 18 09:28:12 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20 (xid=0x5ad1d934)
Apr 18 09:28:25 zframework sudo[12809]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl restart httpd.service
Apr 18 09:28:25 zframework polkitd[500]: Registered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586 [/usr/bin/pkttyagent --notify-fd 5 --fallba
Apr 18 09:28:25 zframework systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
Apr 18 09:28:25 zframework httpd[12815]: [Mon Apr 18 09:28:25.526775 2016] [so:warn] [pid 12815] AH01574: module mpm_prefork_module is already loaded, skipping
Apr 18 09:28:25 zframework httpd[12815]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive gl
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 18 09:28:25 zframework httpd[12815]: no listening sockets available, shutting down
Apr 18 09:28:25 zframework httpd[12815]: AH00015: Unable to open logs
Apr 18 09:28:25 zframework systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 09:28:25 zframework kill[12816]: kill: cannot find process ""
Apr 18 09:28:25 zframework systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 09:28:25 zframework 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.
Apr 18 09:28:25 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:25 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:25 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586, object path /org/freedesktop/PolicyKit1/
Apr 18 09:28:32 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): DHCPv4 request timed out.
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed unknown -> timeout
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): canceled DHCP transaction, DHCP client pid 12794
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed timeout -> done
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  Disabling autoconnect for connection 'Wired connection 1'.
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): Activation: failed for connection 'Wired connection 1'
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 18 09:28:41 zframework avahi-daemon[459]: Withdrawing address record for fe80::601:c6ff:febb:ed02 on eth1.
~
~
~
lines 1186-1228/1228 (END)








Apr 18 09:28:08 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:08 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:08 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12798:88671302 (system bus name :1.585, object path /org/freedesktop/PolicyKit1/Auth
Apr 18 09:28:12 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20 (xid=0x5ad1d934)
Apr 18 09:28:25 zframework sudo[12809]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl restart httpd.service
Apr 18 09:28:25 zframework polkitd[500]: Registered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586 [/usr/bin/pkttyagent --notify-fd 5 --fallback],
Apr 18 09:28:25 zframework systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
Apr 18 09:28:25 zframework httpd[12815]: [Mon Apr 18 09:28:25.526775 2016] [so:warn] [pid 12815] AH01574: module mpm_prefork_module is already loaded, skipping
Apr 18 09:28:25 zframework httpd[12815]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive global
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 18 09:28:25 zframework httpd[12815]: no listening sockets available, shutting down
Apr 18 09:28:25 zframework httpd[12815]: AH00015: Unable to open logs
Apr 18 09:28:25 zframework systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 09:28:25 zframework kill[12816]: kill: cannot find process ""
Apr 18 09:28:25 zframework systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 09:28:25 zframework 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.
Apr 18 09:28:25 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:25 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:25 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586, object path /org/freedesktop/PolicyKit1/Auth
Apr 18 09:28:32 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): DHCPv4 request timed out.
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed unknown -> timeout
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): canceled DHCP transaction, DHCP client pid 12794
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed timeout -> done
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  Disabling autoconnect for connection 'Wired connection 1'.
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): Activation: failed for connection 'Wired connection 1'
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 18 09:28:41 zframework avahi-daemon[459]: Withdrawing address record for fe80::601:c6ff:febb:ed02 on eth1.
~
~
~
~
~
lines 1186-1228/1228 (END)








Apr 18 09:28:08 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:08 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:08 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12798:88671302 (system bus name :1.585, object path /org/freedesktop/PolicyKit1/Authentic
Apr 18 09:28:12 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20 (xid=0x5ad1d934)
Apr 18 09:28:25 zframework sudo[12809]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl restart httpd.service
Apr 18 09:28:25 zframework polkitd[500]: Registered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586 [/usr/bin/pkttyagent --notify-fd 5 --fallback], obje
Apr 18 09:28:25 zframework systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
Apr 18 09:28:25 zframework httpd[12815]: [Mon Apr 18 09:28:25.526775 2016] [so:warn] [pid 12815] AH01574: module mpm_prefork_module is already loaded, skipping
Apr 18 09:28:25 zframework httpd[12815]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 18 09:28:25 zframework httpd[12815]: no listening sockets available, shutting down
Apr 18 09:28:25 zframework httpd[12815]: AH00015: Unable to open logs
Apr 18 09:28:25 zframework systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 09:28:25 zframework kill[12816]: kill: cannot find process ""
Apr 18 09:28:25 zframework systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 09:28:25 zframework 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.
Apr 18 09:28:25 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:25 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:25 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586, object path /org/freedesktop/PolicyKit1/Authentic
Apr 18 09:28:32 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): DHCPv4 request timed out.
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed unknown -> timeout
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): canceled DHCP transaction, DHCP client pid 12794
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed timeout -> done
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  Disabling autoconnect for connection 'Wired connection 1'.
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): Activation: failed for connection 'Wired connection 1'
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 18 09:28:41 zframework avahi-daemon[459]: Withdrawing address record for fe80::601:c6ff:febb:ed02 on eth1.
~
~
~
~
~
~
~
~
~
~
lines 1186-1228/1228 (END)



Apr 18 09:28:08 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:08 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:08 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12798:88671302 (system bus name :1.585, object path /org/freedesktop/PolicyKit1/Authentica
Apr 18 09:28:12 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20 (xid=0x5ad1d934)
Apr 18 09:28:25 zframework sudo[12809]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl restart httpd.service
Apr 18 09:28:25 zframework polkitd[500]: Registered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586 [/usr/bin/pkttyagent --notify-fd 5 --fallback], objec
Apr 18 09:28:25 zframework systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
Apr 18 09:28:25 zframework httpd[12815]: [Mon Apr 18 09:28:25.526775 2016] [so:warn] [pid 12815] AH01574: module mpm_prefork_module is already loaded, skipping
Apr 18 09:28:25 zframework httpd[12815]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to 
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 18 09:28:25 zframework httpd[12815]: no listening sockets available, shutting down
Apr 18 09:28:25 zframework httpd[12815]: AH00015: Unable to open logs
Apr 18 09:28:25 zframework systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 09:28:25 zframework kill[12816]: kill: cannot find process ""
Apr 18 09:28:25 zframework systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 09:28:25 zframework 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.
Apr 18 09:28:25 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:25 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:25 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586, object path /org/freedesktop/PolicyKit1/Authentica
Apr 18 09:28:32 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): DHCPv4 request timed out.
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed unknown -> timeout
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): canceled DHCP transaction, DHCP client pid 12794
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed timeout -> done
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  Disabling autoconnect for connection 'Wired connection 1'.
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): Activation: failed for connection 'Wired connection 1'
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 18 09:28:41 zframework avahi-daemon[459]: Withdrawing address record for fe80::601:c6ff:febb:ed02 on eth1.
~
~
~
~
~
~
~
~
~
~
~
lines 1186-1228/1228 (END)


Apr 18 09:28:08 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:08 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:08 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12798:88671302 (system bus name :1.585, object path /org/freedesktop/PolicyKit1/Authenticat
Apr 18 09:28:12 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20 (xid=0x5ad1d934)
Apr 18 09:28:25 zframework sudo[12809]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl restart httpd.service
Apr 18 09:28:25 zframework polkitd[500]: Registered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object
Apr 18 09:28:25 zframework systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
Apr 18 09:28:25 zframework httpd[12815]: [Mon Apr 18 09:28:25.526775 2016] [so:warn] [pid 12815] AH01574: module mpm_prefork_module is already loaded, skipping
Apr 18 09:28:25 zframework httpd[12815]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to s
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 18 09:28:25 zframework httpd[12815]: no listening sockets available, shutting down
Apr 18 09:28:25 zframework httpd[12815]: AH00015: Unable to open logs
Apr 18 09:28:25 zframework systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 09:28:25 zframework kill[12816]: kill: cannot find process ""
Apr 18 09:28:25 zframework systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 09:28:25 zframework 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.
Apr 18 09:28:25 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:25 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:25 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586, object path /org/freedesktop/PolicyKit1/Authenticat
Apr 18 09:28:32 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): DHCPv4 request timed out.
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed unknown -> timeout
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): canceled DHCP transaction, DHCP client pid 12794
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed timeout -> done
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  Disabling autoconnect for connection 'Wired connection 1'.
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): Activation: failed for connection 'Wired connection 1'
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 18 09:28:41 zframework avahi-daemon[459]: Withdrawing address record for fe80::601:c6ff:febb:ed02 on eth1.
~
~
~
~
~
~
~
~
~
~
~
lines 1186-1228/1228 (END)


Apr 18 09:28:08 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:08 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:08 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12798:88671302 (system bus name :1.585, object path /org/freedesktop/PolicyKit1/Authenticat
Apr 18 09:28:12 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20 (xid=0x5ad1d934)
Apr 18 09:28:25 zframework sudo[12809]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl restart httpd.service
Apr 18 09:28:25 zframework polkitd[500]: Registered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object
Apr 18 09:28:25 zframework systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
Apr 18 09:28:25 zframework httpd[12815]: [Mon Apr 18 09:28:25.526775 2016] [so:warn] [pid 12815] AH01574: module mpm_prefork_module is already loaded, skipping
Apr 18 09:28:25 zframework httpd[12815]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to s
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 18 09:28:25 zframework httpd[12815]: no listening sockets available, shutting down
Apr 18 09:28:25 zframework httpd[12815]: AH00015: Unable to open logs
Apr 18 09:28:25 zframework systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 09:28:25 zframework kill[12816]: kill: cannot find process ""
Apr 18 09:28:25 zframework systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 09:28:25 zframework 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.
Apr 18 09:28:25 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:25 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:25 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586, object path /org/freedesktop/PolicyKit1/Authenticat
Apr 18 09:28:32 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): DHCPv4 request timed out.
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed unknown -> timeout
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): canceled DHCP transaction, DHCP client pid 12794
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed timeout -> done
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  Disabling autoconnect for connection 'Wired connection 1'.
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): Activation: failed for connection 'Wired connection 1'
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 18 09:28:41 zframework avahi-daemon[459]: Withdrawing address record for fe80::601:c6ff:febb:ed02 on eth1.
~
~
~
~
~
~
~
~
~
~
~
~
lines 1186-1228/1228 (END)

Apr 18 09:28:08 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:08 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:08 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12798:88671302 (system bus name :1.585, object path /org/freedesktop/PolicyKit1/Authenticati
Apr 18 09:28:12 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 20 (xid=0x5ad1d934)
Apr 18 09:28:25 zframework sudo[12809]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl restart httpd.service
Apr 18 09:28:25 zframework polkitd[500]: Registered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object 
Apr 18 09:28:25 zframework systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
Apr 18 09:28:25 zframework httpd[12815]: [Mon Apr 18 09:28:25.526775 2016] [so:warn] [pid 12815] AH01574: module mpm_prefork_module is already loaded, skipping
Apr 18 09:28:25 zframework httpd[12815]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to su
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 18 09:28:25 zframework httpd[12815]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Apr 18 09:28:25 zframework httpd[12815]: no listening sockets available, shutting down
Apr 18 09:28:25 zframework httpd[12815]: AH00015: Unable to open logs
Apr 18 09:28:25 zframework systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 09:28:25 zframework kill[12816]: kill: cannot find process ""
Apr 18 09:28:25 zframework systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 18 09:28:25 zframework 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.
Apr 18 09:28:25 zframework systemd[1]: Unit httpd.service entered failed state.
Apr 18 09:28:25 zframework systemd[1]: httpd.service failed.
Apr 18 09:28:25 zframework polkitd[500]: Unregistered Authentication Agent for unix-process:12810:88672988 (system bus name :1.586, object path /org/freedesktop/PolicyKit1/Authenticati
Apr 18 09:28:32 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework dhclient[12794]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x5ad1d934)
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): DHCPv4 request timed out.
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed unknown -> timeout
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): canceled DHCP transaction, DHCP client pid 12794
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): DHCPv4 state changed timeout -> done
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  Disabling autoconnect for connection 'Wired connection 1'.
Apr 18 09:28:41 zframework NetworkManager[460]: <warn>  (eth1): Activation: failed for connection 'Wired connection 1'
Apr 18 09:28:41 zframework NetworkManager[460]: <info>  (eth1): device state change: failed -> disconnected (reason 'none') [120 30 0]
Apr 18 09:28:41 zframework avahi-daemon[459]: Withdrawing address record for fe80::601:c6ff:febb:ed02 on eth1.

Hey there!

The article you mention looks a bit outdated to me. However, what happens if you make the following changes:

# /etc/httpd/conf/httpd.conf

LoadModule php5_module modules/libphp5.so
        
Include conf/extra/php5_module.conf

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

And then comment out:

# /etc/httpd/conf/httpd.conf
#LoadModule mpm_event_module modules/mod_mpm_event.so

Finally restart the service with a:

systemctl restart httpd.service

If that doesn’t do the trick, can you please run the commands:

systemctl status httpd.service
journalctl -xe

And paste the relevant details here or link to a gist?