Redirect phpmyadmin

SYSTEM INFORMATION
OS type and version REQUIRED
Webmin version REQUIRED
Virtualmin version REQUIRED
Webserver version REQUIRED
Related packages SUGGESTED
Operating system Ubuntu Linux 18.04.4
Webmin version2.111

|Usermin version2.010
| — | — |
|Virtualmin version|7.10.0 Pro|

Authentic theme version 21.10

Kernel and CPU Linux 4.15.0-213-generic on x86_64

Hi we have a little issue due to an url call at our server
if we call http://OUR_IP/phpmyadmin it answer
phpMyAdmin - Error
The mysqli extension is missing. Please check your PHP configuration. See our documentation for more information.
Can we disable any answer for direct ip access and only valid if called via fqdn hostname ?
Thanks

This is very old isn’t helping.

How did you install phpmyadmin ?
I tend use

apt install phpmyadmin

Which gives you access to phpmyadmin from all installed domains. There are a couple of minor tweaks you have to but phpmyadmin has good support for those. If you installed by the virtualmin web app installer it will be setup to the version of php on that domain and will install the mysqli extension for that version of php and not the other versions you may have installed, so it maybe a case of installing the mysqli extension for all installed php versions

Ok, i do not want that if i digit http://myip/phpmyadmin will receive that warning .
If i use and enable phpmyadmin script for a fqdn virtual host it works as expected.
I just do not want it replies to a request directly done to IP / phpmyadmin.
Thanks

  • when you visit http://myip/phpmyadmin it will use your default website as set in:
    Virtualmin --> Web configuration --> Website Options --> Default website for IP
    image
  • find out which domain this is
  • check what PHP version this domain is using
  • check the required PHP extensions are installed for this version of PHP

See if this fixes your issue

NB: letsencrypt does not support SSL certificates for IP addresses.

indicates that the default version of php does not have the extension installed … good luck