Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 30th, 2001, 11:52 AM
wlbentley wlbentley is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 6 wlbentley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Unable to connect to Apache over LAN

I have installed Apache, MySQL and PHP on RedHat 7.1 running on a Dell Latitude laptop, as described in Israel Denis's "Soothingly Seamless" tutorial.

I want to access this 'testbench' Apache, etc., from my Mac design workstation over a small LAN, but can't get a connection open.

All IP addresses are defined statically, since for the moment I have only 2-3 workstations running at a time.

From the Dell, Apache, etc., works fine using localhost/127.0.0.1. I get the default display page just fine.

From the Mac, I can PING the IP address of my Dell's Ethernet port, but when I try to connect to Apache (using the IP address directly), I get a Connection Error. It locates the address but cannot connect.

My Questions:
------------------
Where should I be looking for the problem: Apache configuration, Linux network configuration?, Mac configuration? Any suggestions?

So close, and yet so far...

FYI: This is my first Linux installation.

Thanks,

W Bentley

Last edited by wlbentley : July 30th, 2001 at 11:54 AM.

Reply With Quote
  #2  
Old July 30th, 2001, 10:26 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Tell Apache to use like 192.168.0.1, not 127.0.0.1. And take advantage of /etc/hosts file, C:\windows\hosts for win9x or C:\windows\system32\drivers\etc\hosts for winnt/2k/xp

Start here -> http://httpd.apache.org/docs/mod/core.html#servername

Reply With Quote
  #3  
Old July 31st, 2001, 03:32 AM
wlbentley wlbentley is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 6 wlbentley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy

Thanks for the reply.

Nope. I tried it with the IP of its Ethernet connector. Still doesn't connect.

The browser goes through the "Looking for..." stage, then hangs on "Connecting to...".

Any other ideas?

(I want to get it working with IP address before I set up host names.)

Reply With Quote
  #4  
Old July 31st, 2001, 03:39 AM
wlbentley wlbentley is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 6 wlbentley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy

Thanks for the reply.

Nope. I tried it with the IP of its Ethernet connector. Still doesn't connect.

The browser goes through the "Looking for..." stage, then hangs on "Connecting to...".

Any other ideas?

(I want to get it working with IP address before I set up host names.)

Reply With Quote
  #5  
Old July 31st, 2001, 09:32 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Launch a DOS prompt on windows, type telnet 192.168.0.1 80. If you get connection refused or something, there must be a firewall in between or your Apache simply is not up and running. If it's up and running and connected through, you would get a blank screen, no error, no nothing.

Reply With Quote
  #6  
Old July 31st, 2001, 11:33 AM
wlbentley wlbentley is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 6 wlbentley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Tried telnetting again, but I get "Host or gateway not responding".

Apache is definitely running and accessible from the Linux machine using 127.0.0.1.

If there's a firewall, it was installed automatically or accidentally (!), not explicitly by me. How would I look for that?

[I tried stopping and disabling ipchains (using Webmin) and nothing changed... same problem.]

BTW, if this is moving outside the scope of this forum, please let me know.

Any more ideas? Thanks in advance for any further help.

Last edited by wlbentley : July 31st, 2001 at 01:00 PM.

Reply With Quote
  #7  
Old July 31st, 2001, 02:09 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Apache is definitely running and accessible from the Linux machine using 127.0.0.1

So it's up and running. Make sure it's listening to port 80.

>> Tried telnetting again, but I get "Host or gateway not responding"

So there is a firewall in between. As I said, if you telnet from windows to linux, you should get nothing at all, just a blank white screen.

Sorry I don't use Linux, ipchains or webmin whatever. Maybe you should try http://www.linuxnewbie.org/cgi-bin/.../ultimatebb.cgi

Reply With Quote
  #8  
Old July 31st, 2001, 02:37 PM
wlbentley wlbentley is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 6 wlbentley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks. It helps to know you think it's not an Apache setting. I'll try there.

Reply With Quote
  #9  
Old July 31st, 2001, 03:49 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
Have you tried checking out the Networking-HOWTO? I had a problem with routing the other day and reading through that overview reminded me of a few things I could try to resolve the problem...

try 'rpm -qa | grep howto -i' at the command line to find out if you have the HOWTO's installed - if you do it'll tell you so and then you can use 'locate HOWTO' to find the directory they're installed to (doing 'updatedb' first if you haven't already!). Do these things as root is easiest...


Sounds like a network connectivity issue though if you can connect to the webserver locally. First step is to make sure you can ping (or telnet port 80 as above, but ping's easier;\) the linux box from the windows box - open a dos box and do 'ping 192.168.0.1'.

By sounds of it you can't do this yet, which suggests the IP address isn't assigned correctly to the adapter.

A few things to try then on command-line:

'ifconfig eth0' (presuming eth0 is your lan adapter;\) - check to see that the IP address is assigned correctly to the adapter (192.168.0.1 or whatever private address you assigned).

'route' - check the routing table to see if you have an entry including 'default' and 'gw' on same line - can mess things up by trying to send everything somewhere you don't want...

'ipchains -L' (I think - and unless it's another firewall you might be using;\) - if you see no chains listed (rather all empty chains), firewall's not problem, similarly if you get 'command not found' of course...


Above all though, read all the HOWTO's! Also in Red Hat I think 'netconf' could be useful...

Good luck

Last edited by munkfish : July 31st, 2001 at 04:01 PM.

Reply With Quote
  #10  
Old August 1st, 2001, 05:08 AM
wlbentley wlbentley is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 6 wlbentley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking

Problem solved. It's the default route entry, I think.

I wish it was something more esoteric, but that's usually how it is...

In fact, I had looked at many of the message boards and read through a dozen HOWTO's, but somehow that paragraph in networking slipped by.

Thanks, everyone. Really.

Reply With Quote
  #11  
Old August 1st, 2001, 01:09 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
yeah dude... that bit battered my head too once about default routes...

nice one
;\)

Reply With Quote
  #12  
Old October 20th, 2001, 04:40 PM
ember ember is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: budapest, hungary
Posts: 23 ember User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 39 m 42 sec
Reputation Power: 0
default route?

what did you guys just say in the meantime? I mean how did this thing work out all of a sudden? what is "default route" ? how can one fix this problem?

i have the same thing (connectiong thru LAN) and i wanna solve it too .. (with your help)

P L E A S E ...

peter

Reply With Quote
  #13  
Old October 20th, 2001, 06:22 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10

read above.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Unable to connect to Apache over LAN


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |