Ad Widget

Collapse

apache is not running..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aswantara
    Junior Member
    • Dec 2007
    • 12

    #1

    apache is not running..

    i have installed zabbix 1.4.2 in my computer. Zabbix has been running, but it has a problem with apache. Apache detected not running, and when i restarting apache, there is a message "Could not reliably datermine the server's fully qualified domain name, using 127.0.1.1 for ServerName httpd (pid 13992) already running"

    Anyone has been solved this problem?
    thank's.


    Regards,


    Komang
  • ufocek
    Senior Member
    • Aug 2006
    • 161

    #2
    Hi

    What's your's OS? Maybe your's apache is not running a httpd user, in debian and ubuntu apache is running by www-data user.
    Then I check like this -> net.tcp.port[my_ip,80] or net.tcp.port[my_ip,443] is apache listen to standard port www,https

    Albert

    Comment

    • aswantara
      Junior Member
      • Dec 2007
      • 12

      #3
      I have already set the user in apache.conf by www-data, but apache still not working same like above.. So what must i do?
      thank's

      Comment

      • ptader
        Member
        • Sep 2007
        • 52

        #4
        The apache server is probably running. What is the output from the following command:

        # ps -e|grep httpd

        (does it echo back server processes?)

        2338 ? 00:00:11 httpd
        31707 ? 00:00:30 httpd
        31708 ? 00:00:27 httpd
        31709 ? 00:00:33 httpd
        31710 ? 00:00:28 httpd
        31711 ? 00:00:32 httpd
        31712 ? 00:00:30 httpd
        31713 ? 00:00:32 httpd
        31714 ? 00:00:32 httpd


        If you see process like the above, Apache might not be configured to listen the external IP address (maybe listening to localhost only?) thus preventing any external port 80 monitoring by Zabbix.

        ptader@host:~$ telnet localhost 80
        Trying 127.0.0.1...
        Connected to localhost (127.0.0.1).
        Escape character is '^]'.

        Connection closed by foreign host.

        ptader@host:~$ telnet host.company.com 80
        Trying 192.168.0.1...
        telnet: connect to address 192.168.0.1: Connection refused (Opps, nothing listening on port 80)
        telnet: Unable to connect to remote host: Connection refused
        ptader@host:~$


        -ptader
        Last edited by ptader; 22-02-2008, 01:03.

        Comment

        • aswantara
          Junior Member
          • Dec 2007
          • 12

          #5
          when i create a command ps -e|grep httpd, there are no viewing..
          so apache is not running?
          thank's

          _komang

          Comment

          • ptader
            Member
            • Sep 2007
            • 52

            #6
            Correct.

            There is one last check you can do. In your original post the error message indicated that apache was already running with PID 13992. Run this command to see if that is true:

            # ps -ef|grep 13992

            If this echo's nothing, then

            # ls /var/run/apache2.pid

            If this file exist AND apache isn't running, delete it and try restarting apache.

            Comment

            • cbidwell
              Senior Member
              • Aug 2006
              • 127

              #7
              This may sound like a stupid and obvious answer but have you double-checked your httpd.conf file?

              ServerName localhost:80

              Also check your /etc/hosts file to ensure that you have that set up properly.

              ip address localhost.localdomain localhost

              Just trying to help brainstorm.

              Comment

              • aswantara
                Junior Member
                • Dec 2007
                • 12

                #8
                to ptader,,
                i have checked #ps -ef|grep 13992
                and the output is like this :

                root 6927 6864 0 11:37 pts/1 00:00:00 grep 13992

                and then i have deleted the apache2.pid, but there is an error, like this :
                apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                httpd (no pid file) not running
                apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                (98)Address already in use: make_sock: could not bind to address [::]:80
                (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
                no listening sockets available, shutting down
                Unable to open logs
                [fail]

                hos can be like that?
                sorry, i am very beginner using zabbix..
                thank's..

                Comment

                • cbidwell
                  Senior Member
                  • Aug 2006
                  • 127

                  #9
                  What about changing your loopback address to an actual loopback of 127.0.0.1 instead of 127.0.1.1?

                  Comment

                  • woger
                    Member
                    • Sep 2005
                    • 56

                    #10
                    OK,

                    I set debug mode to 4 and got this message in the log:
                    50775:20090928:201310 Requested [net.tcp.service[http]]
                    50775:20090928:201310 TCP expect error: *** Cannot connect to [127.0.0.1]:80 [Connection refused]
                    50775:20090928:201310 Sending back [0]

                    I then added "Listen 127.0.0.1:80" to the httpd.conf and now it works.

                    Comment

                    Working...