Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 69939  / 1 Year ago, tue, april 18, 2023, 2:14:52

Im seeing this error while trying to open phpmyadmin (http://127.0.0.1/phpmyadmin) :



`New XAMPP security concept:

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 think this is a server error, please contact the webmaster.

Error 403
xser.com
Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7`


Edit:



I have commented out this code in "httpd-xampp.conf"., but it has introduced a new problem.



# 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>


Now Im seeing this --



Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

Error 403

xser.com
Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7

More From » xampp

 Answers
2

You need to add this line("Require all granted") to httpd-xampp.conf file at <Directory "/opt/lampp/phpmyadmin"> section.



Here's how the changes will look-



# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Require all granted
Allow from all
</Directory>

[#32972] Tuesday, April 18, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
emuralm

Total Points: 290
Total Questions: 111
Total Answers: 117

Location: China
Member since Thu, Sep 1, 2022
2 Years ago
;