virtualmin / virtualmin-gpl

Virtualmin web hosting control panel for Webmin
https://www.virtualmin.com
GNU General Public License v3.0
331 stars 102 forks source link

phpMyAdmin - Upgrading from 5.2.0 to 5.2.1 .No PHP version #528

Open pixel-paul opened 1 year ago

pixel-paul commented 1 year ago
SYSTEM INFORMATION
OS type and version Redhat Enterprise Linux 8.7
Webmin version 2.013
Usermin version 1.861
Virtualmin version 7.5  
Theme version 20.13
Package updates All installed packages are up to date

PHPMyAdmin is working, however the update script fails with the following error:

Upgrading from 5.2.0 to 5.2.1 .. failed dependencies : No PHP version could be found for this virtual server

Installed PHP from CLI:

php -v
PHP 8.0.27 (cli) (built: Jan  3 2023 16:17:26) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.27, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.27, Copyright (c), by Zend Technologies

Virtualmin configuration check:

The following PHP-FPM versions are available : 8.0.27 (php-fpm)

iliajie commented 1 year ago

What is OS and version? RHEL 9 derivative?

iliajie commented 1 year ago

It's not clear what's wrong. It works for me on my Alma 9 instance.

Does it help if you toggle (or disable/enable) PHP version for the virtual server that is running phpMyAdmin, and where it's failing?

pixel-paul commented 1 year ago

Sorry, I somehow missed that important info! I've updated the issue.

I have toggled PHP on and off and it hasn't made a difference.

Note that this is using the AppStream module for RHEL 8 / PHP 8.

pixel-paul commented 1 year ago

I'm experiencing this issue on several servers now.

image

Then:

image

PHP is definitely installed:

Screenshot 2023-10-30 at 14-16-04 quirky-staging strategy hosting - PHP Options — Webmin 2 101 (Redhat Enterprise Linux 8 7)

jcameron commented 1 year ago

If you SSH into the server as root and run virtualmin list-php-directories --domain yourdomain.com --multiline , what does it output?

pixel-paul commented 1 year ago
$ virtualmin list-php-directories --domain example.com --multiline
/home/example/public_html
  PHP version: 8.0
  Full version: 8.0.30
  Execution mode: fpm
  Web root directory: Yes
jcameron commented 1 year ago

I see you're on Virtualmin 7.5 there, which is pretty old ... have you considered upgrading?

pixel-paul commented 1 year ago

This is quite an old bug report....7.5 was the latest version when I created it, however I'm still encountering this issue with the latest version.

jcameron commented 1 year ago

Hmmm ... I just tested this using the Virtualmin UI to upgrade phpMyAdmin from 5.2.0 to 5.2.1, and it worked fine.

pixel-paul commented 1 year ago

Interesting, which UI did you use to upgrade?

I tried this one and it worked:

php,yadminoddity

But this one didn't!

image