Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
share|improve this question
    
Dont get confused seeing xser.com. I have mapped 127.0.0.1 xser.com in /etc/hosts. –  Curious Apprentice Jan 28 '13 at 11:47

4 Answers 4

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

share|improve this answer

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

share|improve this answer
up vote 2 down vote accepted

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>
share|improve this answer

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.