XAMPP: How to Open Phpmyadmin Access

XAMPP’s Phpmyadmin folder is forbidden as default if accessed from internet. To open access this folder we have to edit /xampp/apache/conf/extra/httpd-xampp.conf file in Windows or /opt/lampp/etc/extra/httpd-xampp.conf file in Linux.

  • Open httpd-xampp.conf file in text editor
  • Find the following line:
    # Windows
    Alias /phpmyadmin "C:/xampp/phpMyAdmin/" 
    <Directory "C:/xampp/phpMyAdmin"> 
        AllowOverride AuthConfig 
        Require local 
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var 
    </Directory> 
    # Linux
    Alias /phpmyadmin "/opt/lampp/phpmyadmin" 
    <Directory "/opt/lampp/phpmyadmin"> 
        AllowOverride AuthConfig Limit
        Require local
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
    </Directory>

Change to the following line:

    # Windows
    Alias /phpmyadmin "C:/xampp/phpMyAdmin/" 
    <Directory "C:/xampp/phpMyAdmin"> 
       Order allow,deny 
       Allow from all 
       Require all granted 
    </Directory>
    # Linux
    Alias /phpmyadmin "/opt/lampp/phpmyadmin" 
    <Directory "/opt/lampp/phpmyadmin"> 
        Order allow,deny 
        Allow from all 
        Require all granted 
    </Directory>

Restart Apache and phpmyadmin can be accessed from internet.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.