LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-10-2004, 08:40 AM   #1
peman
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Rep: Reputation: 0
Connection was refused when trying to contact.........


Hi
I have installed apache-1.3.31-i486-2 on Slackware 10 and httpd.conf has bind my dns name hmp.no-ip.com to the server but when i try to acces it i get this message: Connection was refused when trying to contact hmp.no-ip.com

I have used chmod 777 /var/www -R

but still the same problem... what is it?
 
Old 08-10-2004, 08:56 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
it is not an issue with file permissions.

check iptables if it allows http port.
#iptables -nvL

check if apache is listenening to port 80.
#netstat -an|grep tcp|grep 80

also check apache logs and syslog.
 
Old 08-10-2004, 10:49 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
or try to access server by just typing : http://hmp if hmp is the server hostname and you want to connect it in the same network
 
Old 08-10-2004, 02:10 PM   #4
peman
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Hi thanks for helping me!

Code:
Tja root, Tue Aug 10, ~ #> iptables -nvL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
Tja root, Tue Aug 10, ~ #> netstat -an|grep tcp|grep 80
tcp        0      0 192.168.0.175:33231     213.70.9.103:80         TIME_WAIT
tcp        0      0 192.168.0.175:33237     213.70.9.103:80         TIME_WAIT
tcp        0      0 192.168.0.175:33228     66.102.9.99:80          ESTABLISHED
tcp        0      0 192.168.0.175:33205     216.239.59.99:80        ESTABLISHED
Tja root, Tue Aug 10, ~ #>
And from error_log:

Code:
[Tue Jul 27 01:20:15 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 81.226.244.201 port 80
[Tue Jul 27 01:20:46 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 81.226.244.201 port 80
[Tue Jul 27 01:43:03 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 81.226.244.201 port 80
[Tue Jul 27 01:48:11 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 81.226.244.201 port 80
[Tue Jul 27 02:13:24 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
[Tue Aug 10 13:46:11 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
[Tue Aug 10 13:46:48 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
[Tue Aug 10 13:46:55 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
[Tue Aug 10 13:47:00 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
[Tue Aug 10 14:17:03 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
[Tue Aug 10 14:24:49 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
[Tue Aug 10 15:18:53 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
[Tue Aug 10 15:21:22 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
[Tue Aug 10 15:22:58 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
[Tue Aug 10 15:23:46 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 81.226.244.201 port 80
[Tue Aug 10 15:24:13 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
[Tue Aug 10 15:45:14 2004] [crit] (99)Cannot assign requested address: make_sock: could not bind to address 12.34.56.78 port 80
My httpd.conf is the default file after installing apache and its bind to hmp.no-ip.com and listens to hmp.no-ip.com:80

I had a previous apache installed and i dont know if i successfully uninstalled it, maybe that could be the problem?

sorry for my bad english
 
Old 08-10-2004, 02:58 PM   #5
peman
LQ Newbie
 
Registered: Mar 2004
Posts: 11

Original Poster
Rep: Reputation: 0
I installed Webmin and when i tried to start Apache it failed...
 
Old 08-31-2004, 10:28 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
Quote:
Originally posted by peman

My httpd.conf is the default file after installing apache and its bind to hmp.no-ip.com and listens to hmp.no-ip.com:80
try
*:80
instead of
hmp.no-ip.com:80

so apache will listen to all interfaces. dont use domain names like that in httpd.conf. u can use IP addresses instead of domainname.

my httpd.conf:

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@egemenyazilim.com
DocumentRoot /usr/local/apache2/htdocs
ServerName default
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@egemenyazilim.com
DocumentRoot /var/www/html/yeni
ServerName egemenyazilim.com
ServerAlias www.egemenyazilim.com
</VirtualHost>
 
  


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
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 01:17 AM
connection was refused when attempting to contact localhost wolsue Linux - Networking 1 10-30-2005 01:36 AM
ircd.conf: "Connection failed. Error: Connection refused" hamish Linux - Software 3 03-10-2005 07:23 AM
The connection was refused when attempting to contact localhost:901 budhead Linux - Networking 6 09-05-2004 04:11 PM
lp filename yields "cannot open connection to localhost - Connection refused" jjge Linux - General 3 12-28-2003 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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