Skip to content

Instantly share code, notes, and snippets.

@dhavalv
Last active September 7, 2024 15:24
Show Gist options
  • Save dhavalv/744b1cf996f3990615e85083f84ac56b to your computer and use it in GitHub Desktop.
Save dhavalv/744b1cf996f3990615e85083f84ac56b to your computer and use it in GitHub Desktop.
How to access PhpMyadmin on xampp in linux (Ubuntu)via IP Address?

How to access PhpMyadmin via IP Address?

Change configuarion of httpd-xampp.conf into Xampp V1.4.3 [php v5.5/5.6]
  • Go to /opt/lampp/etc/extra and open file httpd-xampp.conf find code:
# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

change code as per below format

# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Require all granted
    Order allow,deny
    Allow from all
    #Require local
    #ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
Change configuarion of httpd-xampp.conf into Xampp V1.4.3 [php v7]
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    #Require local
	ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

Change to code

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Allow from all
    #Require local
	ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
@zakigates
Copy link

I did all these configs yet I cannot make it work. I don't know what is going on? Please if you know an extra configuration I should add I would be pleased to get informed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment