Solved

Cannot get XAMPP working on my home network

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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). #…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

752 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