Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 434
  • Last Modified:

How to make Apache 2.0 work in my LAN?

Greetings to all experts,

I have a little quesion to ask. For my situation, i use DSL3100R adsl modem to connect all my PC. Now, i have install Apache 2.0 in one of my PC, XP environment. For localhost, it works fine with PHP 4.3.8. However, i can't configure other computer to browse at that PC with apache (coz i wan it to be LAN web server).

Just for information, the adsl modem, the IP is 10.0.0.2(using web browser to configure the modem), the PC with apache is 10.0.0.4(using DHCP-automatic assign)

Can anyone give me a clue?

Thanks.
0
J_J
Asked:
J_J
  • 2
  • 2
2 Solutions
 
samriCommented:
On the machine apache is running, could you browse by using http://10.0.0.4/ ?

What about your client TCP/IP setting.  All the pc IP address would be 10.0.0.x, and the gateway?  is it the ADSL modem/router - 10.0.0.2 ?  If this is the case, check you ADSL router configuration/firewall setting to allow port-80 from LAN to LAN to be routed.

Cheers,
0
 
J_JAuthor Commented:
Yes, i can browse from the machine using 10.0.0.4, but just limit to that local pc. when i try to use 10.0.0.4 at other computer, they all show "we can't find 10.0.0.4"

Ok, the adsl modem IP fixed to 10.0.0.2, every PC can access it well, to make configuration. I wonder would this be the problem that the adsl modem uses it's own web server to make configuration, then other web server can't run??

what i hv done now is for Port Forwarding, i add a new rules, start port 80, end port 80, port type TCP, host IP 10.0.0.4, BUT it not working too...

also, since it is dynamic IP, it will change the IP everytime. so now maybe 10.0.0.4, next time could be 10.0.0.14

For your information, there is LAN & DHCP, NAT, Port Forwarding, Port Triggers, Dynamic DNS at the adsl modem configuration, anyone can give me a clue for it?

thanks!
0
 
samriCommented:
hi J_J,

The promlem now is, the ADSL router is accepting connection on port 80, and the router itself had it's internal webserver (for configuration purpose) running on port 80.  So if you wan to redirect port 80 to another machine on your LAN (which is 10.0.0.4), then then two thing could happen;

1.  It would not be possible since the router will not activate the rule since port 80 is already bound to it's webserver. OR
2.  You would lost connection to the router web server -- then you could not do any configuration at all.  BE careful.

What I can suggest is.

1.  Try to get you apache to run on ports other than 80, Let say 8000.  -- simplest thing to do.  Just edit your apache and locate for "Listen" directive.

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 8000
-- this would cause apache to accept connection on port 8000, ie. your client would need to browse by http://10.0.0.4:8000/


2.  OR, get you ADSL router webserver to run on different port.  This should be possible.  Check you ADSL router config for this.


HTH.



0
 
J_JAuthor Commented:
Gosh....i make a mistake....a careless mistake...

i forgot that i hv on my firewall, which run at the background! now.. when i set a rules for it...then...php and apache run with no problem!  (>.<)

anyway, thanks for giving me advise. i will give the marks for u.

cheers!
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now