Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when trying to access XAMPP from a network [closed]

I get following error when trying to access Xampp from a network I've tried but does not get any idea how to resolve it. Any help??I really confused

Access Forbidden :

Access to the requested Object is only available from the local network. This setting can be configured in the file "httpd-xampp.conf".

like image 379
karto Avatar asked May 21 '11 17:05

karto


People also ask

How do I fix localhost refused to connect to XAMPP?

First off, the most common way to resolve this error is by changing the port of the apache web server if you are using XAMPP or WAMP on windows. Usually, some other web application that you might be running on your computer can get the hold of port 80 and it is blocked/not accessible to an application like apache.

How do I fix forbidden error in XAMPP?

Although XAMPP error 403 can be annoying, it's easy to solve whether you're using Windows, macOS, or Linux. All you have to do is edit the XAMPP httpd-xampp. conf file to ensure that everyone has access to phpMyAdmin. Then the 403 error should disappear right away.

Why my XAMPP localhost is not working?

Resolve Apache port conflicts by changing your listening port to 8080. Include the listening port in the address when accessing localhost. Change your MySQL port to 3307 if another application is blocking the default port 3306.


2 Answers

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.

In later versions of Xampp

...you can simply remove this part

# # New XAMPP security concept # <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">         Require local     ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </LocationMatch> 

from the same file and it should work over the local network.

like image 73
Abhishek Jaiswal Avatar answered Sep 20 '22 16:09

Abhishek Jaiswal


This solution worked well for me: http://www.apachefriends.org/f/viewtopic.php?f=17&t=50902&p=196185#p196185

Edit /opt/lampp/etc/extra/httpd-xampp.conf and adding Require all granted line at bottom of block <Directory "/opt/lampp/phpmyadmin"> to have the following code:

<Directory "/opt/lampp/phpmyadmin">   AllowOverride AuthConfig Limit   Order allow,deny   Allow from all   Require all granted </Directory> 
like image 28
Bat_Programmer Avatar answered Sep 23 '22 16:09

Bat_Programmer