Solved

Cannot get XAMPP working on my home network

Posted on 2011-09-09
3
1,473 Views
Last Modified: 2012-05-12
I am having problems getting an Apache webserver going on my local network at home.
I have 3 laptops in the network. 1 with W7 32 bit and 2 with W7 64 bit  and a router which is a Huawei 585 (wireless broadband/wireless lan)

I have installed XAMPP (32 bit) on one of the W7 64 bit machines

Firstly
 on installation I got this message

"Important MS Vista Note! Because an activated Windows Vista User Account Control (UAC) on your system some functions of xampp are possibly restricted. With UAC please avoid to install XAMPP to C:\Program Files (x86) (because of not enough write permissions). Or deactivate UAC (with msconfig) after this setup."

which I noted but continued on the basis that I didnt have Vista and I was installing in C:\xampp.

Tested the installation. It works fine on the machine on which it is installed and responds OK to localhost access from the browser.

BUT Secondly

Accessing the webserver from the other machines on the network I get

"New XAMPP security concept:

Access to the requested directory is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf""

which contains

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/8
    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

I dont know the syntax to change this or even if it would help particularly as the error message referred to the local network which all machines are on. If the router has stuck in the ISP IP address then I would have though the firewall would have caught it as I have configured it to only allow local IPs on port 80.


So I dont know the solution. I could put "allow from all" and use the firewall to restrict access to specific IP addresses or is there a cleaner way to do it within Apache.
Any help appreciated
Cheers
0
Comment
Question by:cookers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:cookers
ID: 36514568
Ignore the bit about the router injecting an address, I checked Apache Logs and it showed the local network IP address
0
 
LVL 35

Accepted Solution

by:
torimar earned 500 total points
ID: 36515317
They may say that "local network" is allowed, but they effectively exclude all but the loopback, i.e. localhost.
Try adding another "allow" directive for your LAN by specifying some of its tuples, like:

Allow from 127.0.0.0/8
Allow from 192.168

or:

Allow from 127.0.0.0/8
Allow from 192.168.178.0/250

(adjust for your LAN IP subnet)
0
 

Author Closing Comment

by:cookers
ID: 36515429
Worked perfectly and I then changed it slightly to Allow from 192.168.1 .Whilst awaiting a response from EE I checkout some docco at Apache.org which fits in with your solution.

Cheers
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question