Subject: Missing CMD_PMA in DirectAdmin 1.677 – phpMyAdmin SSO Broken

tweemaalj

New member
Joined
May 22, 2025
Messages
3
Hi all,

I’m stuck with the One-Click phpMyAdmin button in DirectAdmin 1.677. In the panel under Account Manager → Databases → phpMyAdmin, I get:

Error Failed to open phpMyAdmin
see attachment)


Environment

  • Ubuntu 22.04 LTS
  • DirectAdmin v1.677
  • CustomBuild fully updated
  • MariaDB 10.6 (socket /var/run/mysqld/mysqld.sock)
  • PHP 8.1 + phpMyAdmin 5.2.2

Troubleshooting steps taken

1. MySQL credentials/config

- Removed all leftover /root/.my.cnf and /etc/mysql/my.cnf so only /usr/local/directadmin/conf/mysql.conf remains
- CLI test passes:
mysql --defaults-extra-file=/usr/local/directadmin/conf/mysql.conf
--execute="SHOW DATABASES;"

2. Core update attempts
- Ran CustomBuild: ./build update_da && ./build directadmin
- Ran the bundled update script:

cd /usr/local/directadmin/scripts
sudo ./update.sh

No /usr/local/directadmin/scripts/CMD_PMA appeared

3. Manual plugin creation
- Created /usr/local/directadmin/plugins/phpMyAdmin/ with valid plugin.conf and admin/index.html (redirect to /CMD_PMA/...)
- Set owner to diradmin:diradmin and chmod 755
→ Plugin now “Active: Yes”, but button still fails

4. UI “Add Plugin” attempts

-Tried both addons/phpMyAdmin-5.2.2.tar.gz and all-languages bundles
-Always 404 or “not in gzip format” errors
- Web Applications → phpMyAdmin
Installs only the standalone webapp under /var/www/html, not the DirectAdmin panel-plugin


Current situation

- The CMD_PMA SSO script is completely missing from /usr/local/directadmin/scripts/.
- Without CMD_PMA, DirectAdmin cannot generate SSO tokens, so the phpMyAdmin button will never work.
- ]All documented methods (CustomBuild, update.sh, UI plugin installer) have failed to restore it.



Questions

- Is there an official CMD_PMA download or patch for DirectAdmin v1.677?
- Are there any additional steps beyond CustomBuild and update.sh to restore core scripts?
- Has anyone else encountered this and found a workaround that doesn’t rely on manual redirects or cookie-auth


Any pointers or shared experiences would be greatly appreciated!

Thanks,
Jan
 

Attachments

  • Scherm­afbeelding 2025-05-22 om 18.43.11.png
    Scherm­afbeelding 2025-05-22 om 18.43.11.png
    27.9 KB · Views: 28
  • Scherm­afbeelding 2025-05-22 om 18.43.26.png
    Scherm­afbeelding 2025-05-22 om 18.43.26.png
    84 KB · Views: 23
My god 2 days work, solution lies in the front-end ... just filling in the password on directadmin tab
Most simple ui-setting ever.

Ok for the ones who also get lost in their terminals...
 
Hi, please open a support ticket. The SSO for the PhpMyAdmin should work out of the box as long as one_click_pma_login=1 is set in the directadmin.conf. Having access to the server we could narrow down the problem.
 
Thanks! Did that already, but didn't see in the UI the empty password field at tab administrator settings.

Very stupid, but i fixed it.
 
Back
Top