Friday, November 2, 2012

Access Denied for phpmyadmin in XAMPP 1.8.1 - Ubuntu

I installed the XAMPP 1.8.1 for linux in my ubuntu and ran http://localhost/phpmyadmin, and suddenly it gives an error Access Denied! Really in my localhost? yeah!

The Fix:

  1. Navigate to the file "httpd-xampp.conf" mine is "/opt/lampp/etc/extra/httpd-xampp.conf"
  2. Add "Require all granted" to this block of code
    #
    
        AllowOverride AuthConfig Limit
        Order allow,deny
        Allow from all
    
    #
    
  3. The result will be
    #
    
        AllowOverride AuthConfig Limit
        Order allow,deny
        Allow from all
        Require all granted
    
    #
    
  4. Then restart your lampp
    #
    sudo /opt/lampp/lampp restart
    #
    

No comments:

Post a Comment