Author Topic: Error when trying to access XAMPP from a network  (Read 295 times)

carine

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
  • Welcome to solution.mypressonline
Error when trying to access XAMPP from a network
« on: March 22, 2014, 03:28:00 PM »
I get this error when trying to access Xampp from a network. I've tried googling it. Any help??
Access to the requested object is only available from the local network. This setting can be configured in the file "httpd-xampp.conf".

ashu

  • Full Member
  • **
  • Posts: 15
  • Karma: +0/-0
Re: Error when trying to access XAMPP from a network
« Reply #1 on: March 22, 2014, 03:31:53 PM »
I get this error when trying to access Xampp from a network. I've tried googling it. Any help??
Access to the requested object is only available from the local network. This setting can be configured in the file "httpd-xampp.conf".


If you are getting a error while using xampp please follow the below instructions

 

So the solution for this is as follows:
1) Open httpd-xampp.conf which is at /opt/lampp/etc/extra/

Edit the lines which you find at the end  which will look like below


    # New XAMPP security concept

    #<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Deny from all
    Allow from ::1 127.0.0.0/8 \
    fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
    fe80::/10 169.254.0.0/16

    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
    </LocationMatch>
    You have to change the code to
    # New XAMPP security concept

    <LocationMatch ^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))>
    Order deny,allow
        Allow from all
    Allow from ::1 127.0.0.0/8 \
    fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
    fe80::/10 169.254.0.0/16

    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
    </LocationMatch>

victor@007

  • Administrator
  • Newbie
  • *****
  • Posts: 8
  • Karma: +0/-0
Re: Error when trying to access XAMPP from a network
« Reply #2 on: March 22, 2014, 03:37:11 PM »
In your
**xampppath\apache\conf\extra** open file **httpd-xampp.conf** and find the below tag:

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

and add

    "Allow from all"

after Allow from ::1 127.0.0.0/8 {line}

Restart xampp, and you are done.