phpMyAdmin public not working

koz

New member
Joined
Jan 23, 2023
Messages
2
I'm having issues getting phpMyAdmin to not be public from mydomain.com/phpmyadmin

I've set phpmyadmin_public to no in the CustomBuild.

Things I've tried already~
Code:
cd /usr/local/directadmin/custombuild
./build update
./build set phpmyadmin_public no
./build phpmyadmin

Tried from this thread: https://forum.directadmin.com/threads/phpmyadmin_public-bug.62853/#post-325158
Code:
cd /usr/local/directadmin/custombuild
./build clean
./build set_fastest
./build update
./build set phpmyadmin_public no
./build phpmyadmin

Code:
./build rewrite_confs

I have tried restarting all the services, plus my machine, after making all the changes. The problem still persists no matter what I do. I eventually just decided to chmod the phpmyadmin to 000 to solve the issue for now. I just added my IP to the firewall and access it using beekeeper. The issue comes into play when I'm working remote and now I don't have access to my databases due to the chmod being 000. Anyway to fix this issue so it can only be accessed through DirectAdmin?
 
If you are an admin (and logged in), you can access it since it's only accessible to admins. Did you clear browser cache ? For the issue on chmod 000, just delete phpmyadmin folder and rebuild it again.
 
Anyway to fix this issue so it can only be accessed through DirectAdmin?

This can be accomplished by enabling the one_click_pma_login option in the directadmin.conf, and phpmyadmin_public=no in the CustomBuild options.conf.

Run:

Code:
cd /usr/local/directadmin/
./directadmin set one_click_pma_login 1
service directadmin restart

cd /usr/local/directadmin/custombuild
./build update
./build set phpmyadmin_public no
./build phpmyadmin
 
This can be accomplished by enabling the one_click_pma_login option in the directadmin.conf, and phpmyadmin_public=no in the CustomBuild options.conf.

Run:

Code:
cd /usr/local/directadmin/
./directadmin set one_click_pma_login 1
service directadmin restart

cd /usr/local/directadmin/custombuild
./build update
./build set phpmyadmin_public no
./build phpmyadmin

This worked for me. Thank you.
 
Back
Top