httpd-xampp.conf: How to allow access to an external IP besides localhost in phpmyadmin for ubuntu?

LinuxMySql

YOUR COSMETIC CARE STARTS HERE

Find the Best Cosmetic Hospitals

Trusted • Curated • Easy

Looking for the right place for a cosmetic procedure? Explore top cosmetic hospitals in one place and choose with confidence.

“Small steps lead to big changes — today is a perfect day to begin.”

Explore Cosmetic Hospitals Compare hospitals, services & options quickly.

✓ Shortlist providers • ✓ Review options • ✓ Take the next step with confidence

If you want to access phpMyAdmin from a static IP besides localhost, then you’re in right place, just follow the below steps :-

Step 1 :- First locate httpd-xampp.conf file, for Ubuntu it’s located at /opt/lampp/etc/extra/

Step 2 :- open httpd-xampp.conf file for editing. you’ll find something live below code

# 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>Code language: PHP (php)

Step 3 :- add Require ip your_ip_address below Require local .

# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Require local
    Require ip 10.0.0.1  // provide your static ip here.
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>Code language: PHP (php)

Step 4 :- Add your static IP address after Require ip your_static_ip.

It’s Done.

Now Check to access your_ip_address/phpmyadmin