LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2003, 04:35 AM   #1
incanus_1
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
Question 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
 
Old 10-26-2003, 05:32 AM   #2
boToo
Member
 
Registered: Aug 2003
Distribution: Kubuntu
Posts: 49

Rep: Reputation: 15
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,
 
Old 10-26-2003, 08:29 AM   #3
incanus_1
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Original Poster
Rep: Reputation: 0
thanks.
I can open SSH connection from another computer, but still not HTTP
 
Old 10-26-2003, 10:01 AM   #4
a_morgan
LQ Newbie
 
Registered: Nov 2002
Location: BC, Canada
Distribution: Red Hat 9
Posts: 12

Rep: Reputation: 0
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?
 
Old 10-26-2003, 10:06 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
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
 
Old 10-28-2003, 01:05 AM   #6
incanus_1
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 10-28-2003, 03:07 AM   #7
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
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
 
Old 10-28-2003, 01:58 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
In rh 9 just use:
service httpd start

To make it run on boot:
chkconfig httpd on
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat 9 - How do I uninstall apache + how do I add apache to autostart? praefex Linux - Software 2 07-29-2003 01:21 PM
Apache v2 help on Redhat 8 mlstrnwbie Linux - Newbie 9 05-04-2003 01:56 PM
Apache and RedHat g_goblin Linux - Distributions 1 12-12-2002 11:54 AM
Help with Apache 2 and Redhat 7.3 spongebob Linux - Newbie 2 09-01-2002 10:48 AM
redhat 7.3 and apache roadie Linux - General 7 05-31-2002 04:30 AM


All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration