8

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
1
  • Dont get confused seeing xser.com. I have mapped 127.0.0.1 xser.com in /etc/hosts. Commented Jan 28, 2013 at 11:47

5 Answers 5

11

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>
2
  • I tried this method editing the file but I cannot save the file. Any idea on how to change the permissions for root user?
    – thednp
    Commented Sep 10, 2015 at 16:30
  • I tried this but still can't access to phpmyadmin Commented Oct 18, 2018 at 10:27
2

just type sudo /opt/lampp/lampp security and set password to your phpmyadmin and log into phpmyadmin as username - lampp password - your_given_password

1

In XAMPP 1.8.1, you have to allow localhost manually by editing httpd-xampp.conf file for screenshots visit this link.

0

The access is limited with the default config to those ip addresses.

try replacing

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

with

Allow from All
0
0
  • In ubuntu go to

    /opt/lampp/etc/extra (default location)

  • Edit httpd-xampp.conf (Need sudo permission to edit)

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .