LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache on RedHat 9.0 (https://www.linuxquestions.org/questions/linux-newbie-8/apache-on-redhat-9-0-a-108603/)

incanus_1 10-26-2003 03:35 AM

Apache on RedHat 9.0
 
Hi,
I'm new the linux and just installed Version 9.
I'm trying to telnet 127.0.0.1 on port 80 (or using a web browser) and I'm getting "Connection Refused"

[root@shelob conf]# telnet 127.0.0.1 80
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused


Any ideas what is the problem ?
Thanks

boToo 10-26-2003 04:32 AM

is your your machine accepting telnet, ok, first check first in system level, which is under system setting menu, make sure you tick telnet in allowing incoming, and also trusted device should be enabled too, and try to telnet from other machine rather than own machine.
you might also want to try ssh instead of telnet,

incanus_1 10-26-2003 07:29 AM

thanks.
I can open SSH connection from another computer, but still not HTTP

a_morgan 10-26-2003 09:01 AM

I do not understand why you are using telnet to connect on port 80.
Did you try typing http://127.0.0.1 in your browser?

Is apache configured and running?

david_ross 10-26-2003 09:06 AM

Telneting to port 80 is a valid way of seeing if a connection can be established.

incanus_1,
Check you don;t have any firewall rules in place - post the output of:
iptables -L

To see if apache is listening for connections - post the output of:
netstat -nlp

incanus_1 10-28-2003 12:05 AM

Ok,
It looks like the Apache is not working...
What Should I check next ?

[root@shelob conf.d]# netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN 2277/rpc.statd
tcp 0 0 127.0.0.1:32769 0.0.0.0:* LISTEN 2395/xinetd
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 2433/spamd -d -c -a
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2258/portmap
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 2607/X
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2381/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2463/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2414/sendmail: acce
tcp 0 0 127.0.0.1:5180 0.0.0.0:* LISTEN 2734/netscape-bin
udp 0 0 0.0.0.0:32768 0.0.0.0:* 2277/rpc.statd
udp 0 0 0.0.0.0:68 0.0.0.0:* 2193/dhclient
udp 0 0 0.0.0.0:111 0.0.0.0:* 2258/portmap
udp 0 0 0.0.0.0:757 0.0.0.0:* 2277/rpc.statd
udp 0 0 0.0.0.0:631 0.0.0.0:* 2463/cupsd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 2759 2442/gpm /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 3274 2696/fam /tmp/.fam_socket
unix 2 [ ACC ] STREAM LISTENING 2987 2563/gdm-binary /tmp/.gdm_socket
unix 2 [ ACC ] STREAM LISTENING 3258 2691/gnome-settings /tmp/orbit-root/linc-a83-0-5ebecf1ca83ae
unix 2 [ ACC ] STREAM LISTENING 3341 2703/metacity /tmp/orbit-root/linc-a8f-0-65c824e0ca28e
unix 2 [ ACC ] STREAM LISTENING 3376 2711/magicdev /tmp/orbit-root/linc-a97-0-67d898e7b52c5
unix 2 [ ACC ] STREAM LISTENING 3397 2707/gnome-panel /tmp/orbit-root/linc-a93-0-67d898e7d76f1
unix 2 [ ACC ] STREAM LISTENING 3423 2709/nautilus /tmp/orbit-root/linc-a95-0-7a3bb454aeafd
unix 2 [ ACC ] STREAM LISTENING 3463 2714/eggcups /tmp/orbit-root/linc-a9a-0-4c457c0911b75
unix 2 [ ACC ] STREAM LISTENING 3580 2726/notification-a /tmp/orbit-root/linc-aa6-0-78514f015be9b
unix 2 [ ACC ] STREAM LISTENING 3613 2718/python /tmp/orbit-root/linc-a9e-0-4ba632deb0f9b
unix 2 [ ACC ] STREAM LISTENING 3764 2752/gnome-terminal /tmp/orbit-root/linc-ac0-0-6f0e671bcd8ff
unix 2 [ ACC ] STREAM LISTENING 3116 2687/gconfd-2 /tmp/orbit-root/linc-a7f-0-17ade9dd68703
unix 2 [ ACC ] STREAM LISTENING 2867 2523/xfs /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 3225 2618/gnome-session /tmp/.ICE-unix/2618
unix 2 [ ACC ] STREAM LISTENING 2997 2607/X /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 3083 2676/ssh-agent /tmp/ssh-XXvlDMGz/agent.2618
unix 2 [ ACC ] STREAM LISTENING 3124 2618/gnome-session /tmp/orbit-root/linc-a3a-0-d578c4b7c36b
unix 2 [ ACC ] STREAM LISTENING 3236 2689/bonobo-activat /tmp/orbit-root/linc-a81-0-492060bb65869

twantrd 10-28-2003 02:07 AM

Hi incanus_1,

Your Apache is probably just fine but it looks like it's not started :).Hence, that's why it's not "listening". There's a couple ways to start the service.

1. Be user root and type "/usr/sbin/httpd start"
2. /etc/init.d/httpd start

However, it also could be that you didn't install apache. Check this to see if you do have the apache package:

rpm -q apache

-twantrd

david_ross 10-28-2003 12:58 PM

In rh 9 just use:
service httpd start

To make it run on boot:
chkconfig httpd on


All times are GMT -5. The time now is 08:07 AM.