bashing my head into the wall (apache)

Discussion in 'OT Technology' started by crotchfruit, Sep 14, 2003.

  1. crotchfruit

    crotchfruit Guest

    ok, running redhat 9.0. i downloaded apache 1.3.28. i did a ./configure; make; make install. apache is now in /usr/local/apache/..

    so i run:

    /usr/local/apache/bin/apachectl start
    apachectrl start: httpd started

    i can verify that httpd is running by doing a quick 'ps aux'.

    so i try to 'telnet 127.0.0.1 80' from inside this system and get a connection refused. WTF.

    i disabled all reject lines in iptables, deleted all lines from hosts.deny, added ALL:ALL to hosts.allow. i just want to get this httpd thing to work. btw, internet is fine otherwise. i am sshing into this headless system from another computer on my network.. but i can't telnet into port 80.

    where else can i check for firewall-ness that is rejecting port 80?
     
  2. MP

    MP New Member

    Joined:
    Sep 10, 2002
    Messages:
    34,377
    Likes Received:
    0
    Location:
    Silicon Valley
    yer ISP might have port 80 blocked


    try port 8080 (just to test)
     
  3. Leb_CRX

    Leb_CRX OT's resident terrorist

    Joined:
    Apr 22, 2001
    Messages:
    39,994
    Likes Received:
    0
    Location:
    Ottawa, Canada
    Whats his ISP have to do with anything? 127.x is the localhost address

    have you tried just opening it in a browser? linx or anything?
     
  4. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    ummmmmmm last i checked i didnt think u could telnet to apache...
     
  5. Leb_CRX

    Leb_CRX OT's resident terrorist

    Joined:
    Apr 22, 2001
    Messages:
    39,994
    Likes Received:
    0
    Location:
    Ottawa, Canada
    I can on my windows machine I just tried it to see, but I got 2.0
     
  6. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    weird, i just tried and i cant.
     
  7. Leb_CRX

    Leb_CRX OT's resident terrorist

    Joined:
    Apr 22, 2001
    Messages:
    39,994
    Likes Received:
    0
    Location:
    Ottawa, Canada
    I am on a windows XP machine if that makes a differance...

    the funnier part is that it's not even running to me, yet I can still access it from both browser and telnet... :ugh: something strange is happening :ugh:
     
  8. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    xp pro here. do u have anything in ur services going? i would try to fix that hole asap.
     
  9. Leb_CRX

    Leb_CRX OT's resident terrorist

    Joined:
    Apr 22, 2001
    Messages:
    39,994
    Likes Received:
    0
    Location:
    Ottawa, Canada
    ya I figure it's in the services, just weird, I CLOSED THE FUCKING ICON...haha :) it dosent bother me much I am behind a router/firewall, I just leave it on for testing purposes, since I have SSI in my webpages
     
  10. crotchfruit

    crotchfruit Guest

    this in on a home lan. there is no ISP involved. i can't connect via telnet, or browser, from either the server or another comp on the network. however, i can ssh into the server, so i know the connection is ok.

    yes, you can telnet into a webserver. try this: 'telnet yahoo.com 80'. when you get a blank prompt, type:
    'GET / HTTP/1.1' and press return twice, you will get some HTML back from it. this does *not* happen for me. as soon as i 'telnet 127.0.0.1 80' from the server, or 'telnet 192.168.0.X 80' from my other comp, i get an instant connection refused (much like it you telnet to a random IP that does not have anything open on port 80.)

    server is running red hat 9, other comp is running xp. i have no firewall in xp (it's all behind an external firewall, but the two comps themselves are connected with a hub.) i'm not a linux expert, so i don't know if there is another firewall somewhere, but like i said i took out every line from iptables and hosts.deny that looked suspicious. is there anywhere else?
     
  11. crotchfruit

    crotchfruit Guest

    GOD DAMN SHIT FUCK.

    i figured it out.. i guess a good night sleep helps debug. i must have run the install crap from an account other than root, because apache was defaulting to port 8080. THANKS FOR TELLING ME THIS NOWHERE, APACHE.

    so i just uncommented out the 'Listen 80' line in httpd.conf. sweeeet.
     
  12. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    woah that telnet thing worked. :cool: never knew u could do that. easy way of testing out a webserver i guess
     

Share This Page