LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2003, 11:15 AM   #1
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Rep: Reputation: 30
problem while entering local host (on apache)


i've installed apache from source files. it has installed with no problems. i've started the service, but when i try to enter http://localhost , i'm prompted a message that the connection was refused. i've turned off the firewall, but i still get the same message. what should i do?!
 
Old 12-13-2003, 11:19 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Check that it is listening and that the firewall is disabled. Post the output of:
netstat -nlp
iptables -nL
 
Old 12-13-2003, 11:35 AM   #3
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Original Poster
Rep: Reputation: 30
well i get the following output:

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 3657/rpc.statd
tcp 0 0 127.0.0.1:32769 0.0.0.0:* LISTEN 3775/xinetd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 3638/portmap
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 4347/httpd
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 3985/X
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3760/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 3834/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3795/sendmail: acce
udp 0 0 0.0.0.0:32768 0.0.0.0:* 3657/rpc.statd
udp 0 0 0.0.0.0:865 0.0.0.0:* 3657/rpc.statd
udp 0 0 0.0.0.0:111 0.0.0.0:* 3638/portmap
udp 0 0 0.0.0.0:631 0.0.0.0:* 3834/cupsd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 4002 3931/gdm-binary /tmp/.gdm_socket
unix 2 [ ACC ] STREAM LISTENING 4275 4068/fam /tmp/.fam_socket
unix 2 [ ACC ] STREAM LISTENING 6260 4402/esd /tmp/.esd/socket
unix 2 [ ACC ] STREAM LISTENING 3758 3814/gpm /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 4137 4014/gnome-session /tmp/orbit-jogurt/linc-fae-0-87c5e2e27b53
unix 2 [ ACC ] STREAM LISTENING 3857 3886/xfs /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 4238 4061/bonobo-activat /tmp/orbit-jogurt/linc-fdd-0-5c5263c8dcf28
unix 2 [ ACC ] STREAM LISTENING 4129 4059/gconfd-2 /tmp/orbit-jogurt/linc-fdb-0-20c4cb901cd9b
unix 2 [ ACC ] STREAM LISTENING 4572 4098/notification-a /tmp/orbit-jogurt/linc-1002-0-3dc373809d3d8
unix 2 [ ACC ] STREAM LISTENING 4259 4063/gnome-settings /tmp/orbit-jogurt/linc-fdf-0-1a98a87820d33
unix 2 [ ACC ] STREAM LISTENING 4346 4076/metacity /tmp/orbit-jogurt/linc-fec-0-5ba5f5b0b4b12
unix 2 [ ACC ] STREAM LISTENING 4376 4084/magicdev /tmp/orbit-jogurt/linc-ff4-0-1082650758306
unix 2 [ ACC ] STREAM LISTENING 4394 4080/gnome-panel /tmp/orbit-jogurt/linc-ff0-0-108265077bf14
unix 2 [ ACC ] STREAM LISTENING 4419 4082/nautilus /tmp/orbit-jogurt/linc-ff2-0-629531592bb7c
unix 2 [ ACC ] STREAM LISTENING 4456 4086/eggcups /tmp/orbit-jogurt/linc-ff6-0-6295315952a48
unix 2 [ ACC ] STREAM LISTENING 4606 4090/python /tmp/orbit-jogurt/linc-ffa-0-5024fd9d1653f
unix 2 [ ACC ] STREAM LISTENING 4228 4014/gnome-session /tmp/.ICE-unix/4014
unix 2 [ ACC ] STREAM LISTENING 7182 4478/wombat /tmp/orbit-jogurt/orb-1243419687347374416
unix 2 [ ACC ] STREAM LISTENING 7430 4502/gnome-terminal /tmp/orbit-jogurt/linc-1196-0-1d785b17b04a
unix 2 [ ACC ] STREAM LISTENING 6165 4385/oafd /tmp/orbit-jogurt/orb-1412517196707561022
unix 2 [ ACC ] STREAM LISTENING 6208 4393/bonobo-moniker /tmp/orbit-jogurt/orb-14443645511117114642
unix 2 [ ACC ] STREAM LISTENING 6324 4418/evolution-alar /tmp/orbit-jogurt/orb-8521871241940072944
unix 2 [ ACC ] STREAM LISTENING 4107 4056/ssh-agent /tmp/ssh-XX5683Dg/agent.4014
unix 2 [ ACC ] STREAM LISTENING 4012 3985/X /tmp/.X11-unix/X0

and about iptables, i've disabled it, to check if it pervents me from entering my host.
 
Old 12-13-2003, 11:39 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The netstat output shows nothing about a service listening on port 80 (http). How did you start apache? With "apachectl start"? Did you get any errors when you started it?
 
Old 12-13-2003, 11:58 AM   #5
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Original Poster
Rep: Reputation: 30
i found the error. server started on port 8080 not 80 as i (and the browser) have expected. but i' wondering why?
 
Old 12-13-2003, 12:03 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Then you must have started it as a user. Only root can start services on ports below 1024. Therefore apache defautls to 8080 if you arn't root.
 
Old 12-14-2003, 02:53 AM   #7
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Original Poster
Rep: Reputation: 30
well to be honest i started it as root. if i try to start it as normal user server doesn't starts at all! in addition in httpd.conf port was set to 8080
 
Old 12-14-2003, 09:31 AM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Just change the port to 80 in httpd.conf, restart apache and you should be fine.
 
Old 12-14-2003, 10:50 AM   #9
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Original Poster
Rep: Reputation: 30
well i did so
 
  


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
Apache Virtual Host Problem eckertc1 Linux - Newbie 11 03-23-2005 03:31 PM
Apache and Virtual Host Problem sekondborn Linux - Software 9 02-12-2005 02:26 PM
Can't get local host after installing Apache jedson Linux - Software 6 10-24-2004 02:00 PM
Apache virtual host problem Adrohak Linux - Software 3 07-18-2004 04:17 PM
Apache 2.0 Virtual Host Problem frankd99 Linux - Software 3 02-16-2004 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:35 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