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

LinuxMySql

MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

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