Enable One-Click Login for PhpMyAdmin from DirectAdmin with simple steps, real commands, and practical guidance that saves time and improves database access instantly. Our DirectAdmin Live Support Team is always here to help you.
If you manage databases daily, you already know how tiring it can get to enter credentials every single time. So here’s the fix many admins swear by: Enable One-Click Login for PhpMyAdmin from DirectAdmin. This feature lets you jump straight into phpMyAdmin without typing a username or password. And once you try it, you’ll never want to go back.
Before anything else, make sure you have root access. You’re about to run commands that actually change how your DirectAdmin setup works.
Overview
1: Log in as Root
Start by accessing your server through SSH as the root user. After that, move into the DirectAdmin directory:
cd /usr/local/directadmin/
2: Turn on One-Click Login
Next, enable the auto-login feature using the built-in DirectAdmin command:
./directadmin set one_click_pma_login 1
This single switch does the main job, but of course, you must restart the service so the change takes effect.
service directadmin restart
3: Update CustomBuild
Now, continue to the CustomBuild directory:
cd custombuild
Then update the build file:
./build update
And finally, rebuild phpMyAdmin so DirectAdmin can apply your changes:
./build phpmyadmin
At this point, you have already enabled Enable One-Click Login for PhpMyAdmin from DirectAdmin on the backend. Now it’s time to test it.
4: Test the One-Click Login
Go back into your DirectAdmin panel as root. Head to Account Manager → MySQL Management.
Choose any database. On the far right, click Login. Instead of seeing the phpMyAdmin login screen, you will be taken straight inside. That’s how you know the feature is active.
5: Block Direct Login to phpMyAdmin (Optional but Smart)
Sometimes, direct login using database credentials isn’t something you want to allow. For extra protection, you can make phpMyAdmin accessible only through Single Sign-On.
Start by moving to the CustomBuild directory again:
cd /usr/local/directadmin/custombuild
Update the script:
./build update
Disable public phpMyAdmin access:
./build set phpmyadmin_public no
Rebuild phpMyAdmin once more:
./build phpmyadmin
Now, any user trying to access phpMyAdmin with a normal username and password will see this message:
Access to phpMyAdmin is only allowed from the control panel.
This setup not only keeps things simple but also adds a layer of safety. And because convenience matters as much as security, enabling Enable One-Click Login for PhpMyAdmin from DirectAdmin gives you both.
Conclusion
Admins today want speed, clarity, and fewer steps to get things done. That’s why more people choose to Enable One-Click Login for PhpMyAdmin from DirectAdmin. It cuts wasted minutes, reduces login errors, and keeps your workflow clean. And even better, the steps are easy enough for anyone to follow.
Once you set it up, you’ll realize how much smoother database management can be. So go ahead and Enable One-Click Login for PhpMyAdmin from DirectAdmin, it’s a small change with big results.
