phpMyAdmin installed from VirtualMin looks for cpanel session data?

SYSTEM INFORMATION
OS type and version Debian 12
Virtualmin version 7.50.0 GPL

I have a virtual server in a domain smth.mainsite.tld. I installed phpMyAdmin from VirtualMin, everything went smoothly and all information displayed looks as expected:

but when I click on the link phpMyAdmin displays a message

Why does it look for cPanel data? I see nothing relevant in apache and php logs, simple test php site that I put on the domain works OK.

Thanks for reading. Not: VirtualMin is mostly terra incognita to me, I can be missing most basic things.

I can’t reproduce this on Debian 11. I’d say try to remove it and reinstall.

You NEVER had cPanel on this machine, right? Clean OS install and ran the Virtualmin script? Gotta ask.

yes, clean Debian 12 image installed by a hosting provider (OVH, they offer separate image of AlmaLinux with cPanel), virtualmin script first thing run, no modifications other than html/php files added in public_html (and some attempts to configure sites, domains, virtual servers, mysql, but everything done using virtualmin)

1 Like

OK. The only thing I can suggest other than trying to reinstall is to go to your /etc directory and run grep -ir cpanel * to make sure OVH doesn’t have something there.

root@main:/etc# grep -ir cpanel *
modsecurity/crs/crs-setup.conf:#  setvar:tx.crs_exclusions_cpanel=1,\
root@main:/etc#

nothing found.

Trying to uninstall/install changes nothing. Not very surprising, as is just copies the settings, which are - apparently - already wrong.

image

Similar setup (same OVH, same Debian 12, different but identical VPS) works OK and phpMyAdmin works after installation, the only difference I am aware of is that in one case it is installed in the main domain (myname.tld), in the other case in a subdomain (xx.myname.tld). DNS are hosted at OVH, myname.tld and xx.myname.tld are on different servers and different IPs (not that I think it matters).

That indicates you migrated the domain from a cPanel system and there’s some residual config or something somewhere. I assume.

Obviously, that’s not the usual configuration.

Oh my, ../phi.ini, phpMyAdmin was installed in public_html/phpmyadmin and read the config from updir.

Unlucky order - I copied files from the site I am migrating, didn’t even try to run the site without copying database, installed phpMyAdmin - and it didn’t work. If I would start with phpMyAdmin it would stop working after copying site files and it would be obvious where to to look for the problem from the very beginning.

Thanks for suggestions and comments, they helped.

2 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.