Click to See Complete Forum and Search --> : Apache not responding other machines


ArlinOrlando
08-01-2006, 11:52 AM
I installed FC5 with Apache, Mysql and PHP.
The machine IP is 192.168.1.50

On the local machine I am able to access http://localhost or http://192.168.1.50 with no problems.

But when I try to access http://192.168.1.50 from another machine, firefox status stay forever at "Waiting for 192.168.1.50..."

Firewall is disable,
SELinux is disable...

Apache error_log dont say anithing...
But Apache eccess_log shows the ip from the machine I am trying to access... But only this.. the other fields from Apache acess_log keep empty...

Thats strange...
Anyone has any clue about whats going on ?

Thanks,
Arlin

dkeav
08-01-2006, 11:59 AM
check hosts.allow hosts.deny

ArlinOrlando
08-01-2006, 02:26 PM
both files are empty :

[root@gr ~]# cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#

[root@gr ~]# cat /etc/hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!

Should I add something to them ?

bwkaz
08-01-2006, 07:56 PM
What does this "other machine" have for an IP address? Is it on the same subnet as the Apache server? Same physical broadcast domain (i.e. is there a tree of hubs or switches between the two, no routers) as well?

ArlinOrlando
08-01-2006, 11:24 PM
What does this "other machine" have for an IP address? Is it on the same subnet as the Apache server? Same physical broadcast domain (i.e. is there a tree of hubs or switches between the two, no routers) as well?

Yes It has the IP 192.168.1.101, its on the same network as the apache server, infact I can ssh to the Apache machine with no problems.

I have only one switch betwen this machines...
I think the problem is with the FC5... Because I have other machines here with same configuration but FC4, and has no problem... Dont know if in FC5 I have to set an extra configuration somewhere... Or I am just forgeting something...

Anyway.. I tink this is very odd, because its not denying the service, it just not responding to the request.

ArlinOrlando
08-02-2006, 03:40 AM
Yes, the problem seems to be the FC5.
I Installed FC4 and works like a charm.

Anyone runs Apache at FC5 without problems ?

wheelnut
08-02-2006, 07:57 AM
Are you using a proxy or masquerading?

HughA
08-02-2006, 08:11 AM
Hello ArlinOrlando,

You could try this: set 'LogLevel' to 'debug' in your httpd.conf file, re-start Apache, try connecting, and then check your error log. With the log level set to debug there will be more verbose output in the log, and this might give you a clearer picture of what is going on. Another method of trouble-shooting this issue would be to use netcat to try connecting to the webserver from the client's command line (see 'man nc' and try googling on this subject if you are not familiar with it). If this doesn't do the trick then some packet-sniffing with 'tcpdump' or a similar utility may be in order.

I hope this is helpful :-)

Best regards,
Hugh

ArlinOrlando
08-02-2006, 01:48 PM
Are you using a proxy or masquerading?
Nope. Just the default Apache configuration.

Hello ArlinOrlando,

You could try this: set 'LogLevel' to 'debug' in your httpd.conf file, re-start Apache, try connecting, and then check your error log. With the log level set to debug there will be more verbose output in the log, and this might give you a clearer picture of what is going on. Another method of trouble-shooting this issue would be to use netcat to try connecting to the webserver from the client's command line (see 'man nc' and try googling on this subject if you are not familiar with it). If this doesn't do the trick then some packet-sniffing with 'tcpdump' or a similar utility may be in order.

I hope this is helpful :-)

Best regards,
Hugh

Thanks Hugh,

I am at the office now, but I will try this again tonight!

ArlinOrlando
08-02-2006, 11:06 PM
OK! Found the real source of the problem!
I was the hard drive I was using.
First I was using a HD with 250GB capacity.
When I try to install FC4 to see if it will work, I installed it to another HD with 80GB capacity. And it worked, so I tought the problem was with FC5.
But to make sure I tried once last time to install the FC5 again on the 80GB HD, and it worked!

Anyway, thanks guys for all the help ;)