Friday 17 October 2014

New XAMPP security concept


New XAMPP security concept [solved]

Hello Everyone,

I have just downloaded the new XAMPP 1.8.0. and got the error at localhost/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

localhost

So the solution for this is as follows:

1) Open httpd-xampp.conf which is at /opt/lampp/etc/extra/

2) Find <Directory "/opt/lampp/phpmyadmin">

3) Now just add Require all granted before </Directory>

4) So the code will look like this
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
  </Directory>
5) Now finally Restart the xampp with this command /opt/lampp/lampp restart

That's it and you are Done!


Other side :

open your http.conf file
vim /opt/lampp/etc/extra/httpd-xampp.conf
Comment "Deny from all" in the following section,
#
# 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>
Edit:
Try to add "Allow from all" before "ErrorDocument" line. Hope it helps.



# 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 "^/(?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/HTTP_XAMPP_FORBIDDEN.html.var
   </LocationMatch>















No comments:

Post a Comment