LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-12-2003, 07:18 PM   #1
Newman_SCO
Member
 
Registered: Jul 2003
Location: Scotland, Fife
Distribution: Mandrake 9.1
Posts: 31

Rep: Reputation: 15
Wink Apache listening on port.. well it isn't


Apache...

I have opened port 80 in shorewall.

I did a port scan on www.pcflank.com

It says it is closed (normally stealthed) on port 80.

The httpd service is running. But isn't listening. (I checked under netstat)

It is not the ISP. I have changed the port number and restarted the service to check it it blocks 80)

How will I get apache to listen?

I thought when httpd was running it enabled listening on 80?

Help would be great.

Neil

Running mandrake 9.1/shorewall/iptables
 
Old 08-13-2003, 02:38 AM   #2
bleah-man
Member
 
Registered: Nov 2002
Location: London UK
Distribution: RedHat 9
Posts: 58

Rep: Reputation: 15
You sound like you know what you're doing so this is probably something you have tried already -

Should be two lines in your httpd.conf that go something like this:

Listen *:80
Port 80

By placing a star in the Listen directive I found that httpd glooms all bound IPADDR's - I presume you've done this but it's all I can think of that might help - good luck.

Bleah
 
Old 08-13-2003, 09:04 AM   #3
Newman_SCO
Member
 
Registered: Jul 2003
Location: Scotland, Fife
Distribution: Mandrake 9.1
Posts: 31

Original Poster
Rep: Reputation: 15
Port 80 was specified for listening.

I added *:

Unfortunately it still does not listen.

Thanks for trying
 
Old 08-13-2003, 09:09 AM   #4
bleah-man
Member
 
Registered: Nov 2002
Location: London UK
Distribution: RedHat 9
Posts: 58

Rep: Reputation: 15
Welcome.. and sorry it didn't work for you.
 
Old 08-13-2003, 01:34 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Can you post the output from this netstat command:
netstat -nlp
 
Old 08-13-2003, 03:47 PM   #6
Newman_SCO
Member
 
Registered: Jul 2003
Location: Scotland, Fife
Distribution: Mandrake 9.1
Posts: 31

Original Poster
Rep: Reputation: 15
Here is it david:

btw (I do understand some ports shouldn't be listening to the internet in this info)


Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 127.0.0.1:2849 0.0.0.0:* LISTEN
17599/xinetd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
3542/smbd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
12858/
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
29613/X
tcp 0 0 81.132.4.62:53 0.0.0.0:* LISTEN
1218/
tcp 0 0 192.168.1.1:53 0.0.0.0:* LISTEN
1218/
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
1218/
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
30548/sshd
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN
14743/cupsd
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
1218/
udp 0 0 0.0.0.0:1024 0.0.0.0:*
1218/
udp 0 0 0.0.0.0:513 0.0.0.0:*
16596/rwhod
udp 0 0 192.168.1.1:137 0.0.0.0:*
2511/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:*
2511/nmbd
udp 0 0 192.168.1.1:138 0.0.0.0:*
2511/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:*
2511/nmbd
udp 0 0 81.132.4.62:53 0.0.0.0:*
1218/
udp 0 0 192.168.1.1:53 0.0.0.0:*
1218/
udp 0 0 127.0.0.1:53 0.0.0.0:*
1218/
udp 0 0 0.0.0.0:67 0.0.0.0:*
14183/dhcpd
udp 0 0 0.0.0.0:111 0.0.0.0:*
12858/
udp 0 0 0.0.0.0:631 0.0.0.0:*
14743/cupsd
raw 0 0 0.0.0.0:1 0.0.0.0:* 7
14183/dhcpd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Pat
h
unix 2 [ ACC ] STREAM LISTENING 1246 2593/ /tm
p/.font-unix/fs-1
unix 2 [ ACC ] STREAM LISTENING 6565 29613/X /tm
p/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 15021 1922/kdeinit: Runni /tm
p/ksocket-alastair/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 15128 2697/artsd /tm
p/mcop-alastair/localhost-0a89-3f39dba5
unix 2 [ ACC ] STREAM LISTENING 15050 30858/kdeinit: klau /tm
p/ksocket-alastair/klauncheru6MM0a.slave-socket
unix 2 [ ACC ] STREAM LISTENING 17720 22478/ /tm
p/ksocket-alastair/kdesud_:0
unix 2 [ ACC ] STREAM LISTENING 15025 20668/kdeinit: dcop /tm
p/.ICE-unix/dcop20668-1060756383
unix 2 [ ACC ] STREAM LISTENING 15178 2719/kdeinit: ksmse /tm
p/.ICE-unix/2719
unix 2 [ ACC ] STREAM LISTENING 15064 21489/ /tm
p/.fam_socket
Active IPX sockets
Proto Recv-Q Send-Q Local Address Foreign Address State
 
Old 08-14-2003, 12:09 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Well apache isn't listening on port 80. Try restarting it.
 
Old 08-14-2003, 04:08 PM   #8
Newman_SCO
Member
 
Registered: Jul 2003
Location: Scotland, Fife
Distribution: Mandrake 9.1
Posts: 31

Original Poster
Rep: Reputation: 15
When I start httpd. Is says [ok]

But when I run the "entended status" command..
have a read below:

What could it be?

[root@localhost admin]# /etc/init.d/httpd version
Usage: /etc/init.d/httpd {start|stop|restart|reload/graceful|closelogs|update|status|configtest}
[root@localhost admin]# /etc/init.d/httpd status

Apache is *not* running.

Use /etc/init.d/httpd extendedstatus for more information.

[root@localhost admin]# /etc/init.d/httpd extendedstatus

Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost/server-status

##############################################################################
[root@localhost admin]#
 
Old 08-14-2003, 04:22 PM   #9
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
hmmm...if you run:

apachectl -t

does it say the Syntax is OK? You may have a minor syntax error in httpd.conf that is screwing things up.
 
Old 08-14-2003, 04:52 PM   #10
Newman_SCO
Member
 
Registered: Jul 2003
Location: Scotland, Fife
Distribution: Mandrake 9.1
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks for a quick response. -t will be the same as configtest.
There is no -t featured in the commands list to do with apachectl.

[root@localhost conf]# apachectl configtest
Checking configuration sanity for Apache 2.0: [ OK ]
[root@localhost conf]#


The config file is pretty much standard as it came.
Only tried different port numbers now and again.

Thanks for trying to help.
 
Old 08-15-2003, 12:32 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try running it in interactive mode. Use the "-X" switch when running the httpd binary.
 
  


Reply



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
2 servers listening on port 80 possible? scrawl Linux - Software 1 03-13-2005 05:06 PM
listening to a usb port fred22 Programming 0 01-11-2005 07:53 PM
Listening on a serial port calebsg Linux - General 2 10-13-2004 10:45 AM
ssh listening on port 22 sharpie Linux - Security 9 06-08-2004 03:28 PM
sendmail listening on port 25 dskny Linux - Software 14 08-12-2003 06:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:24 AM.

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
Open Source Consulting | Domain Registration