Ad Widget

Collapse

unable to start httpd service on centos while installing zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shubhra
    Junior Member
    • Oct 2016
    • 2

    #1

    unable to start httpd service on centos while installing zabbix

    Hi,

    I'm new to zabbix and installing it on my centos server.

    I followed the link - http://tecadmin.net/install-zabbix-n...el-and-fedora/.

    After installing apache, php and MySQL when I start the httpd service I got the following error:
    __________________________________________________ ______
    [root@centos-512mb-sgp1-01 ~]# service httpd start
    Redirecting to /bin/systemctl start httpd.service
    Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
    __________________________________________________ ______
    In journalctl -xe, it is showing the following error:
    Oct 07 05:18:38 centos-512mb-sgp1-01 systemd[1]: Starting The Apache HTTP Server...
    -- Subject: Unit httpd.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
    --
    -- Unit httpd.service has begun starting up.
    Oct 07 05:18:38 centos-512mb-sgp1-01 httpd[8243]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName'
    Oct 07 05:18:38 centos-512mb-sgp1-01 httpd[8243]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
    Oct 07 05:18:38 centos-512mb-sgp1-01 httpd[8243]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
    Oct 07 05:18:38 centos-512mb-sgp1-01 httpd[8243]: no listening sockets available, shutting down
    Oct 07 05:18:38 centos-512mb-sgp1-01 httpd[8243]: AH00015: Unable to open logs
    Oct 07 05:18:38 centos-512mb-sgp1-01 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
    Oct 07 05:18:39 centos-512mb-sgp1-01 kill[8245]: kill: cannot find process ""
    Oct 07 05:18:39 centos-512mb-sgp1-01 systemd[1]: httpd.service: control process exited, code=exited status=1
    Oct 07 05:18:39 centos-512mb-sgp1-01 systemd[1]: Failed to start The Apache HTTP Server.
    -- Subject: Unit httpd.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman.../systemd-devel
    --
    -- Unit httpd.service has failed.
    --
    -- The result is failed.
    Oct 07 05:18:39 centos-512mb-sgp1-01 systemd[1]: Unit httpd.service entered failed state.
    Oct 07 05:18:39 centos-512mb-sgp1-01 systemd[1]: httpd.service failed.
    Oct 07 05:18:39 centos-512mb-sgp1-01 polkitd[2642]: Unregistered Authentication Agent for unix-process:8228:190149806 (system bus name :1.1323, object path /org/freedes
    Oct 07 05:18:51 centos-512mb-sgp1-01 sshd[8251]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.20 user=root
    Oct 07 05:18:51 centos-512mb-sgp1-01 sshd[8251]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
    Oct 07 05:18:53 centos-512mb-sgp1-01 sshd[8251]: Failed password for root from 116.31.116.20 port 18342 ssh2
    Oct 07 05:18:53 centos-512mb-sgp1-01 sshd[8251]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
    Oct 07 05:18:55 centos-512mb-sgp1-01 sshd[8251]: Failed password for root from 116.31.116.20 port 18342 ssh2
    Oct 07 05:18:55 centos-512mb-sgp1-01 sshd[8251]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
    Oct 07 05:18:57 centos-512mb-sgp1-01 sshd[8251]: Failed password for root from 116.31.116.20 port 18342 ssh2
    Oct 07 05:18:58 centos-512mb-sgp1-01 sshd[8251]: Received disconnect from 116.31.116.20: 11: [preauth]
    Oct 07 05:18:58 centos-512mb-sgp1-01 sshd[8251]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.20 user=root


    Could someone please help me to understand what is going wrong?

    Thanks in advance.

    Regards,
    Shubhra
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    do you have htaccses ?
    can you post /etc/http/http.conf ?
    do you use root user ?
    can you check what is using port 80 ?

    Comment

    • shubhra
      Junior Member
      • Oct 2016
      • 2

      #3
      Thanks, yes nginx was listening on port 80. changed the port to 8081. issue got resolved.

      Comment

      Working...