Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cannot get XAMPP working on my home network

Posted on 2011-09-09
3
Medium Priority
?
1,502 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
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 …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

721 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