Solved

Cannot get XAMPP working on my home network

Posted on 2011-09-09
3
1,420 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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 …
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now