Message When Opening PhpMyadmin: New XAMPP security concept

This is my experiance. Today, I installed XAMPP Linux 1.8.1 on Ubuntu 10.10 localhost, but I have a problem when opening phpmyadmin. when I would create a database in phpmyadmin display a message as follows:

Access forbiden! 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 
Apache/2.4.3 (unix) OpenSSL/1.0.1c PHP/5.4.7 
XAMPP
Further, as usual I am looking for a solution in Google search engine and I found a blog to solve the problem (http://daksh21ubuntu.blogspot.com).

To solve the above problem, the following tips:
  • Open Terminal (Ctrl + Alt + t]), then typing the code below: 
        sudo gedit /opt/lampp/etc/extra/httpd-xampp.conf

  •  The first, find code below: 
# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
</Directory>
  • Then, change with code below:
# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Require all granted (adding code here)
    Order allow,deny
    Allow from all
</Directory>
  • The second, find code below:
#
<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>
  • And change with code below:
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Allow from all
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
  • Next, save and don't forget restart your XAMPP by typing: 
        sudo /opt/lampp/lampp restart

        And it's true, It works. Thanks for daksh21ubuntu.blogspot.com

Postingan terkait:

Belum ada tanggapan untuk " Message When Opening PhpMyadmin: New XAMPP security concept"