Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
i have a real interesting proble been searching for hours and i just dont understant whats wrong. i get this hetious error when ti tried to start apache by doing ...
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    13

    cant start my apache server?

    i have a real interesting proble been searching for hours and i just dont understant whats wrong.
    i get this hetious error when ti tried to start apache by doing this 'apchectl start'
    here is the error
    (9Address already in use: make_sock: could not bind to address [::]:80
    (9Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down


    however if i run
    'nmap localhost' i get this
    Not shown: 1656 closed ports
    PORT STATE SERVICE
    1/tcp open tcpmux
    21/tcp open ftp
    22/tcp open ssh
    23/tcp open telnet
    25/tcp open smtp
    37/tcp open time
    53/tcp open domain
    80/tcp open http
    111/tcp open rpcbind
    139/tcp open netbios-ssn
    445/tcp open microsoft-ds
    514/tcp open shell
    543/tcp open klogin
    631/tcp open ipp
    689/tcp open unknown
    780/tcp open wpgs
    811/tcp open unknown
    873/tcp open rsync
    2049/tcp open nfs
    2601/tcp open zebra
    3128/tcp open squid-http
    3306/tcp open mysql
    5555/tcp open freeciv
    5900/tcp open vnc

    which as you can tell it says port 80 is being used buy http??? then why the hell im getting this error? i just dont get it . what im i doing wrong? help please!!!

  2. #2
    Just Joined! hunter_thom's Avatar
    Join Date
    Apr 2010
    Posts
    89
    Try:

    apachectl status

    or

    ps ax | grep httpd

    or

    netstat -anp | grep -i listen | less


    One of these will tell you if apache is already running. It sounds to me like either:
    1. Apache is already running
    2. Some other web server is running.

    Either way, by finding the process that is binding to port 80, you'll know whatw/hy you cant start apache.

    Might be apache is already running. Or it might be some other process you can kill in order to start apache.

    Hope that helps.

  3. #3
    Just Joined!
    Join Date
    Dec 2010
    Posts
    13
    Quote Originally Posted by hunter_thom View Post
    Try:

    apachectl status

    or

    ps ax | grep httpd

    or

    netstat -anp | grep -i listen | less


    One of these will tell you if apache is already running. It sounds to me like either:
    1. Apache is already running
    2. Some other web server is running.

    Either way, by finding the process that is binding to port 80, you'll know whatw/hy you cant start apache.

    Might be apache is already running. Or it might be some other process you can kill in order to start apache.

    Hope that helps.
    here is the output i get it has port 80 as -
    what those that mean i dont understand what i could possibley be doing wrong?

    tcp 0 0 0.0.0.0:768 0.0.0.0:* LISTEN 3132/rpc.rquotad
    tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 2894/hpiod
    tcp 0 0 0.0.0.0:1 0.0.0.0:* LISTEN 3098/xinetd
    tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:514 0.0.0.0:* LISTEN 3098/xinetd
    tcp 0 0 0.0.0.0:675 0.0.0.0:* LISTEN 2613/rpc.statd
    tcp 0 0 0.0.0.0:37 0.0.0.0:* LISTEN 3098/xinetd
    tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN 3098/xinetd
    tcp 0 0 127.0.0.1:2601 0.0.0.0:* LISTEN 2628/zebra
    tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 3256/mysqld
    tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 3400/smbd
    tcp 0 0 0.0.0.0:5900 0.0.0.0:* LIST
    :
    tcp 0 0 0.0.0.0:768 0.0.0.0:* LISTEN 3132/rpc.rquotad
    tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 2894/hpiod
    tcp 0 0 0.0.0.0:1 0.0.0.0:* LISTEN 3098/xinetd
    tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:514 0.0.0.0:* LISTEN 3098/xinetd
    tcp 0 0 0.0.0.0:675 0.0.0.0:* LISTEN 2613/rpc.statd
    tcp 0 0 0.0.0.0:37 0.0.0.0:* LISTEN 3098/xinetd
    tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN 3098/xinetd
    tcp 0 0 127.0.0.1:2601 0.0.0.0:* LISTEN 2628/zebra
    tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 3256/mysqld
    tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 3400/smbd
    tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 3892/vino-server
    tcp 0 0 0.0.0.0:40494 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2578/portmap
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:5555 0.0.0.0:* LISTEN 3346/dc_server
    tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 3501/dnsmasq
    tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 3098/xinetd
    tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 3098/xinetd
    tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 3084/cupsd
    tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 3360/(squid)
    tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3292/sendmail: acce
    tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 3400/smbd
    tcp 0 0 0.0.0.0:543 0.0.0.0:* LISTEN 3098/xinetd
    tcp 0 0 0.0.0.0:799 0.0.0.0:* LISTEN 3164/rpc.mountd
    tcp 0 0 0.0.0.0:799 0.0.0.0:* LISTEN 3164/rpc.mountd
    tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 2899/python
    tcp 0 0 :::53 :::* LISTEN 3501/dnsmasq
    tcp 0 0 :::22 :::* LISTEN 3075/sshd
    unix 2 [ ACC ] STREAM LISTENING 6025 2053/iscsid @ISCSIADM_ABSTRACT_NAMESPACE
    unix 2 [ ACC ] STREAM LISTENING 11789 3782/gam_server @/tmp/fam-root-
    unix 2 [ ACC ] STREAM LISTENING 11916 3854/dbus-daemon @/tmp/dbus-EtwnHWElBJ
    unix 2 [ ACC ] STREAM LISTENING 7004 2628/zebra /var/run/quagga/zebra.vty
    unix 2 [ ACC ] STREAM LISTENING 10079 3256/mysqld /var/lib/mysql/mysql.sock
    unix 2 [ ACC ] STREAM LISTENING 10280 3328/dc_client /var/cache/mod_ssl/distcache
    unix 2 [ ACC ] STREAM LISTENING 13103 3964/gam_server @/tmp/fam-miguel83-
    unix 2 [ ACC ] STREAM LISTENING 6011 2047/brcm_iscsiuio @ISCSID_UIP_ABSTRACT_NAMESPACE
    unix 2 [ ACC ] STREAM LISTENING 10658 3466/avahi-daemon: /var/run/avahi-daemon/socket
    unix 2 [ ACC ] STREAM LISTENING 6997 2628/zebra /var/run/quagga/zserv.api
    unix 2 [ ACC ] STREAM LISTENING 6443 2384/audispd /var/run/audispd_events
    unix 2 [ ACC ] STREAM LISTENING 7384 2783/hald @/var/run/hald/dbus-HKyAHnko3H
    unix 2 [ ACC ] STREAM LISTENING 7149 2672/dbus-daemon /var/run/dbus/system_bus_socket
    unix 2 [ ACC ] STREAM LISTENING 7232 2693/sdpd /var/run/sdp
    unix 2 [ ACC ] STREAM LISTENING 10442 3391/xfs /tmp/.font-unix/fs7100
    unix 2 [ ACC ] STREAM LISTENING 7313 2754/pcscd /var/run/pcscd.comm
    unix 2 [ ACC ] STREAM LISTENING 11244 3587/gdm-binary /tmp/.gdm_socket
    unix 2 [ ACC ] STREAM LISTENING 7338 2764/acpid /var/run/acpid.socket
    unix 2 [ ACC ] STREAM LISTENING 11274 3685/Xorg /tmp/.X11-unix/X0
    unix 2 [ ACC ] STREAM LISTENING 11868 3820/ssh-agent /tmp/ssh-oEQGFH3784/agent.3784
    unix 2 [ ACC ] STREAM LISTENING 11937 3860/gconfd-2 /tmp/orbit-miguel83/linc-f14-0-3cda23c3b330e
    unix 2 [ ACC ] STREAM LISTENING 11946 3784/gnome-session /tmp/orbit-miguel83/linc-ec8-0-701e8586c9afd
    unix 2 [ ACC ] STREAM LISTENING 11563 3758/nscd /var/run/nscd/socket
    unix 2 [ ACC ] STREAM LISTENING 12152 3784/gnome-session /tmp/.ICE-unix/3784
    unix 2 [ ACC ] STREAM LISTENING 12161 3863/gnome-keyring- /tmp/keyring-LUzcKm/socket
    unix 2 [ ACC ] STREAM LISTENING 12180 3865/gnome-settings /tmp/orbit-miguel83/linc-f19-0-3191fc5749591
    unix 2 [ ACC ] STREAM LISTENING 12267 3885/bonobo-activat /tmp/orbit-miguel83/linc-f2d-0-4bf6b1e7ce9d8
    unix 2 [ ACC ] STREAM LISTENING 13068 3958/mapping-daemon /tmp/mapping-miguel83
    unix 2 [ ACC ] STREAM LISTENING 12300 3890/metacity /tmp/orbit-miguel83/linc-f32-0-7ee08bf6d5c5a
    unix 2 [ ACC ] STREAM LISTENING 12317 3892/vino-server /tmp/orbit-miguel83/linc-f34-0-5f118baff173a
    unix 2 [ ACC ] STREAM LISTENING 12361 3896/gnome-panel /tmp/orbit-miguel83/linc-f38-0-24071f2511f76
    unix 2 [ ACC ] STREAM LISTENING 12394 3898/nautilus /tmp/orbit-miguel83/linc-f3a-0-24071f251b6b3
    unix 2 [ ACC ] STREAM LISTENING 12417 3906/gnome-vfs-daem /tmp/orbit-miguel83/linc-f42-0-7197ce7224332
    unix 2 [ ACC ] STREAM LISTENING 12424 3909/gnome-volume-m /tmp/orbit-miguel83/linc-f3c-0-24071f252a374
    unix 2 [ ACC ] STREAM LISTENING 12491 3915/bt-applet /tmp/orbit-miguel83/linc-f4b-0-412241660523
    unix 2 [ ACC ] STREAM LISTENING 12943 3902/eggcups /tmp/orbit-miguel83/linc-f3e-0-24071f25bbf97
    unix 2 [ ACC ] STREAM LISTENING 12993 3924/nm-applet /tmp/orbit-miguel83/linc-f54-0-3229ed4cd0360
    unix 2 [ ACC ] STREAM LISTENING 12956 3935/gnome-power-ma /tmp/orbit-miguel83/linc-f47-0-24071f25bdc14
    unix 2 [ ACC ] STREAM LISTENING 8993 3084/cupsd /var/run/cups/cups.sock
    unix 2 [ ACC ] STREAM LISTENING 13036 3950/wnck-applet /tmp/orbit-miguel83/linc-f6e-0-8740d9261499
    unix 2 [ ACC ] STREAM LISTENING 13040 3948/trashapplet /tmp/orbit-miguel83/linc-f6c-0-8740d9265c45
    unix 2 [ ACC ] STREAM LISTENING 13090 3920/python /tmp/orbit-miguel83/linc-f50-0-5a386feaedc6e
    unix 2 [ ACC ] STREAM LISTENING 13166 3981/clock-applet /tmp/orbit-miguel83/linc-f8d-0-700a3d50dc86d
    unix 2 [ ACC ] STREAM LISTENING 13181 3979/notification-a /tmp/orbit-miguel83/linc-f8b-0-700a3d50e511a
    unix 2 [ ACC ] STREAM LISTENING 13196 3983/mixer_applet2 /tmp/orbit-miguel83/linc-f8f-0-700a3d50ea049
    unix 2 [ ACC ] STREAM LISTENING 13298 3990/notification-d /tmp/orbit-miguel83/linc-f96-0-515064d1e1b67
    unix 2 [ ACC ] STREAM LISTENING 13376 4022/gnome-screensa /tmp/orbit-miguel83/linc-fb5-0-6c444f8d88c81
    unix 2 [ ACC ] STREAM LISTENING 7385 2783/hald @/var/run/hald/dbus-UqWJCLmVrm
    unix 2 [ ACC ] STREAM LISTENING 10234 3310/gpm /dev/gpmctl
    (END)
    tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 2899/python
    tcp 0 0 :::53 :::* LISTEN 3501/dnsmasq
    tcp 0 0 :::22 :::* LISTEN 3075/sshd
    unix 2 [ ACC ] STREAM LISTENING 6025 2053/iscsid @ISCSIADM_ABSTRACT_NAMESPACE
    unix 2 [ ACC ] STREAM LISTENING 11789 3782/gam_server @/tmp/fam-root-
    unix 2 [ ACC ] STREAM LISTENING 11916 3854/dbus-daemon @/tmp/dbus-EtwnHWElBJ
    unix 2 [ ACC ] STREAM LISTENING 7004 2628/zebra /var/run/quagga/zebra.vty
    unix 2 [ ACC ] STREAM LISTENING 10079 3256/mysqld /var/lib/mysql/mysql.sock
    unix 2 [ ACC ] STREAM LISTENING 10280 3328/dc_client /var/cache/mod_ssl/distcache
    unix 2 [ ACC ] STREAM LISTENING 13103 3964/gam_server @/tmp/fam-miguel83-
    unix 2 [ ACC ] STREAM LISTENING 6011 2047/brcm_iscsiuio @ISCSID_UIP_ABSTRACT_NAMESPACE
    unix 2 [ ACC ] STREAM LISTENING 10658 3466/avahi-daemon: /va
    :
    tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 2899/python
    tcp 0 0 :::53 :::* LISTEN 3501/dnsmasq
    tcp 0 0 :::22 :::* LISTEN 3075/sshd
    unix 2 [ ACC ] STREAM LISTENING 6025 2053/iscsid @ISCSIADM_ABSTRACT_NAMESPACE
    unix 2 [ ACC ] STREAM LISTENING 11789 3782/gam_server @/tmp/fam-root-
    unix 2 [ ACC ] STREAM LISTENING 11916 3854/dbus-daemon @/tmp/dbus-EtwnHWElBJ
    unix 2 [ ACC ] STREAM LISTENING 7004 2628/zebra /var/run/quagga/zebra.vty
    unix 2 [ ACC ] STREAM LISTENING 10079 3256/mysqld /var/lib/mysql/mysql.sock
    unix 2 [ ACC ] STREAM LISTENING 10280 3328/dc_client /var/cache/mod_ssl/distcache
    unix 2 [ ACC ] STREAM LISTENING 13103 3964/gam_server @/tmp/fam-miguel83-
    unix 2 [ ACC ] STREAM LISTENING 6011 2047/brcm_iscsiuio @ISCSID_UIP_ABSTRACT_NAMESPACE
    unix 2 [ ACC ] STREAM LISTENING 10658 3466/avahi-daemon: /var/run/avahi-daemon/socket
    unix 2 [ ACC ] STREAM LISTENING 6997 2628/zebra /var/run/quagga/zserv.api
    unix 2 [ ACC ] STREAM LISTENING 6443 2384/audispd /var/run/audispd_events
    unix 2 [ ACC ] STREAM LISTENING 7384 2783/hald @/var/run/hald/dbus-HKyAHnko3H
    unix 2 [ ACC ] STREAM LISTENING 7149 2672/dbus-daemon /var/run/dbus/system_bus_socket
    unix 2 [ ACC ] STREAM LISTENING 7232 2693/sdpd /var/run/sdp
    unix 2 [ ACC ] STREAM LISTENING 10442 3391/xfs /tmp/.font-unix/fs7100
    unix 2 [ ACC ] STREAM LISTENING 7313 2754/pcscd /var/run/pcscd.comm
    unix 2 [ ACC ] STREAM LISTENING 11244 3587/gdm-binary /tmp/.gdm_socket
    unix 2 [ ACC ] STREAM LISTENING 7338 2764/acpid /var/run/acpid.socket
    unix 2 [ ACC ] STREAM LISTENING 11274 3685/Xorg /tmp/.X11-unix/X0
    unix 2 [ ACC ] STREAM LISTENING 11868 3820/ssh-agent /tmp/ssh-oEQGFH3784/agent.3784
    unix 2 [ ACC ] STREAM LISTENING 11937 3860/gconfd-2 /tmp/orbit-miguel83/linc-f14-0-3cda23c3b330e
    unix 2 [ ACC ] STREAM LISTENING 11946 3784/gnome-session /tmp/orbit-miguel83/linc-ec8-0-701e8586c9afd
    unix 2 [ ACC ] STREAM LISTENING 11563 3758/nscd /var/run/nscd/socket
    unix 2 [ ACC ] STREAM LISTENING 12152 3784/gnome-session /tmp/.ICE-unix/3784
    unix 2 [ ACC ] STREAM LISTENING 12161 3863/gnome-keyring- /tmp/keyring-LUzcKm/socket
    unix 2 [ ACC ] STREAM LISTENING 12180 3865/gnome-settings /tmp/orbit-miguel83/linc-f19-0-3191fc5749591
    unix 2 [ ACC ] STREAM LISTENING 12267 3885/bonobo-activat /tmp/orbit-miguel83/linc-f2d-0-4bf6b1e7ce9d8
    unix 2 [ ACC ] STREAM LISTENING 13068 3958/mapping-daemon /tmp/mapping-miguel83
    unix 2 [ ACC ] STREAM LISTENING 12300 3890/metacity /tmp/orbit-miguel83/linc-f32-0-7ee08bf6d5c5a
    unix 2 [ ACC ] STREAM LISTENING 12317 3892/vino-server /tmp/orbit-miguel83/linc-f34-0-5f118baff173a
    unix 2 [ ACC ] STREAM LISTENING 12361 3896/gnome-panel /tmp/orbit-miguel83/linc-f38-0-24071f2511f76
    unix 2 [ ACC ] STREAM LISTENING 12394 3898/nautilus /tmp/orbit-miguel83/linc-f3a-0-24071f251b6b3
    unix 2 [ ACC ] STREAM LISTENING 12417 3906/gnome-vfs-daem /tmp/orbit-miguel83/linc-f42-0-7197ce7224332
    unix 2 [ ACC ] STREAM LISTENING 12424 3909/gnome-volume-m /tmp/orbit-miguel83/linc-f3c-0-24071f252a374
    unix 2 [ ACC ] STREAM LISTENING 12491 3915/bt-applet /tmp/orbit-miguel83/linc-f4b-0-412241660523
    unix 2 [ ACC ] STREAM LISTENING 12943 3902/eggcups /tmp/orbit-miguel83/linc-f3e-0-24071f25bbf97
    unix 2 [ ACC ] STREAM LISTENING 12993 3924/nm-applet /tmp/orbit-miguel83/linc-f54-0-3229ed4cd0360
    unix 2 [ ACC ] STREAM LISTENING 12956 3935/gnome-power-ma /tmp/orbit-miguel83/linc-f47-0-24071f25bdc14
    unix 2 [ ACC ] STREAM LISTENING 8993 3084/cupsd /var/run/cups/cups.sock
    unix 2 [ ACC ] STREAM LISTENING 13036 3950/wnck-applet /tmp/orbit-miguel83/linc-f6e-0-8740d9261499
    unix 2 [ ACC ] STREAM LISTENING 13040 3948/trashapplet /tmp/orbit-miguel83/linc-f6c-0-8740d9265c45
    unix 2 [ ACC ] STREAM LISTENING 13090 3920/python /tmp/orbit-miguel83/linc-f50-0-5a386feaedc6e
    unix 2 [ ACC ] STREAM LISTENING 13166 3981/clock-applet /tmp/orbit-miguel83/linc-f8d-0-700a3d50dc86d
    unix 2 [ ACC ] STREAM LISTENING 13181 3979/notification-a /tmp/orbit-miguel83/linc-f8b-0-700a3d50e511a

  4. #4
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    Please use code tags when posting outputs of commands, it'll preserve formatting.

    Anyway:
    Code:
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
    Someone is listening on port 80, but the output doesn't specify who or what.

    Perhaps you can try this:
    Code:
    ss -po state listening '( sport = :http )'
    It should give the name and PID of the process that's occupying the http port.


    And for curiosities sake, you could try this:
    Code:
    telnet serverip 80
    and then type:
    Code:
    HEAD / HTTP/1.0
    Press [enter] twice.

    You should get something similar to:
    Code:
    % telnet localhost 80
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    HEAD / HTTP/1.0
    
    HTTP/1.1 200 OK
    Date: Wed, 27 Apr 2011 10:41:50 GMT
    Server: Apache/2.2.16 (Unix) DAV/2 PHP/5.2.14
    X-Powered-By: PHP/5.2.14
    Connection: close
    Content-Type: text/html
    
    Connection closed by foreign host.
    
    Connection: close
    Content-Type: text/html
    
    Connection closed by foreign host.
    %
    Can't tell an OS by it's GUI

  5. #5
    Just Joined!
    Join Date
    Dec 2010
    Posts
    13

    Unhappy

    Quote Originally Posted by Freston View Post
    Please use code tags when posting outputs of commands, it'll preserve formatting.

    Anyway:
    Code:
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
    Someone is listening on port 80, but the output doesn't specify who or what.

    Perhaps you can try this:
    Code:
    ss -po state listening '( sport = :http )'
    It should give the name and PID of the process that's occupying the http port.


    And for curiosities sake, you could try this:
    Code:
    telnet serverip 80
    and then type:
    Code:
    HEAD / HTTP/1.0
    Press [enter] twice.

    You should get something similar to:
    Code:
    % telnet localhost 80
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    HEAD / HTTP/1.0
    
    HTTP/1.1 200 OK
    Date: Wed, 27 Apr 2011 10:41:50 GMT
    Server: Apache/2.2.16 (Unix) DAV/2 PHP/5.2.14
    X-Powered-By: PHP/5.2.14
    Connection: close
    Content-Type: text/html
    
    Connection closed by foreign host.
    
    Connection: close
    Content-Type: text/html
    
    Connection closed by foreign host.
    %
    man this is so frustuating

    here is the output i wich i new what is holding the port up? here is the output of those commands but nothing seems to be glaring back at me.
    Code:
    [root@new-host ~]# ss -po state listening '( sport = :http )'
    Recv-Q Send-Q           Local Address:Port               Peer Address:Port   
    0      0                            *:http                          *:*       
    [root@new-host ~]# telnet serverip 80
    serverip/80: Name or service not known
    [root@new-host ~]# HEAD / HTTP/1.0
    200 OK
    Content-Length: 934
    Content-Type: text/html
    Last-Modified: Tue, 26 Apr 2011 03:38:53 GMT
    Client-Date: Wed, 27 Apr 2011 16:17:37 GMT
    
    
    200 OK
    Connection: close
    Date: Wed, 27 Apr 2011 16:17:45 GMT
    Server: Apache-Coyote/1.1
    Content-Length: 1074
    Content-Type: text/html
    Client-Date: Wed, 27 Apr 2011 16:17:38 GMT
    Client-Peer: 208.94.146.81:80
    Client-Response-Num: 1

  6. #6
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    just to make sure, this part:

    Quote Originally Posted by miguel83
    Code:
    [root@new-host ~]# telnet serverip 80
    serverip/80: Name or service not known
    [root@new-host ~]# HEAD / HTTP/1.0
    I take it this is a copy/paste error?

    And that you ran
    Code:
    telnet localhost 80
    From the server
    or substituted 'serverip' with the IP address (or hostname) of the server if ran from a client?

    Because if that's not the case then you may have found your telnet command went to your ISP's default [URL not found please click on one of these ads] page that I have my own private opinion about ... nevermind, run it again while you are logged into your server:

    Code:
    telnet localhost 80
    HEAD / HTTP/1.0

    ________

    Quote Originally Posted by miguel83
    Code:
    [root@new-host ~]# ss -po state listening '( sport = :http )'
    Recv-Q Send-Q           Local Address:Port               Peer Address:Port   
    0      0                            *:http                          *:*
    ...and that's all she wrote? This is weird. One thing I can think of, is somehow SELinux preventing you from reading the process table? To SELinux it doesn't matter that you're root. Please post output of (on server, as root):
    Code:
    id -Z
    Can't tell an OS by it's GUI

  7. #7
    Just Joined!
    Join Date
    Dec 2010
    Posts
    13
    response from telnet localhost 80
    Code:
    [root@new-host ~]# telnet localhost 80
    Trying 127.0.0.1...
    Connected to localhost.localdomain (127.0.0.1).
    Escape character is '^]'.
    Connection closed by foreign host.
    this is strange. I even try to unistall and reinstall apache to see if i can get it to work. i also had another idea you think this might anything to so with IPtables?
    thanks for helping me out with this. I never thought my learning curve was going to be so steep from windows. I really appreciate your time and help with this.

  8. #8
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    Quote Originally Posted by miguel83
    this is strange. I even try to unistall and reinstall apache to see if i can get it to work.
    Strange.... yes. Or perhaps, just ununderstood. But you gave me an idea...

    Code:
    service httpd stop
    ss -po state listening '( sport = :http )'
    See if something is listening on port 80 when Apache's definitely certified to be down.

    Quote Originally Posted by miguel83
    i also had another idea you think this might anything to so with IPtables?
    Well, that telnet thing.... oh, no, if it was IPtables, it would have never connected. But by the default it should certainly not block out connections from localhost to localhost.

    Quote Originally Posted by miguel83
    thanks for helping me out with this.
    You're welcome!

    Quote Originally Posted by miguel83
    I never thought my learning curve was going to be so steep from windows. I really appreciate your time and help with this.
    Haha, don't underestimate! Just remember that the other way around is just as difficult. It's just like learning a new language


    ----


    The weird thing to me is not that port 80 is blocked, because that can happen, but that both netstat and ss don't specify who, what or why it's blocked. I never came 'round to asking what your distro is. Can you elaborate on that?
    Also, because your output from netstat is so very long, I take it you did a full install with all options and all extras? I'm wondering if it can be that some other webserver is listening on port 80.
    Can't tell an OS by it's GUI

  9. #9
    Just Joined!
    Join Date
    Dec 2010
    Posts
    13
    ok so here is the result from the above if im not mistaken does this mean http is not running?
    Code:
    [root@new-host ~]# ss -po state listening '( sport = :http )'
    Recv-Q Send-Q                                                            Local Address:Port                                                                Peer Address:Port   
    0      0                                                                             *:http                                                                           *:*

  10. #10
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    No, that means that something /is/ running. Yell at it: Grrrr http down! Down http! Down!

    And then please take some time to answer my other questions
    Can't tell an OS by it's GUI

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...