PHP not found for Ubuntu servers

SYSTEM INFORMATION
OS type and version #64-Ubuntu 5.15.0-58-generic
Webmin version REQUIRED
Virtualmin version REQUIRED
Related packages SUGGESTED

Upgrading WordPress to version 6.1.1 …

… failed dependencies : No PHP version could be found for this virtual server

This is happening on 2 Ubuntu servers.

ns60@ns60:~$ php -v
PHP 8.1.2-1ubuntu2.10 (cli) (built: Jan 16 2023 15:19:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2-1ubuntu2.10, Copyright (c), by Zend Technologies
ns60@ns60:~$
envy@ns40:~$ php -v
PHP 8.1.2-1ubuntu2.10 (cli) (built: Jan 16 2023 15:19:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2-1ubuntu2.10, Copyright (c), by Zend Technologies
envy@ns40:~$

Did you upgrade to 8.1 recently? If so, were the Wordpress sites already installed when you upgraded?

I am not sure.

But…

trying to install a new one wokred.

Downloading https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar (6.41 MiB) ..
     Received 1 KiB (0 %)
     Received 658.16 KiB (10 %)
     Received 1.28 MiB (20 %)
     Received 1.92 MiB (30 %)
     Received 2.56 MiB (40 %)
     Received 3.2 MiB (50 %)
     Received 3.85 MiB (60 %)
     Received 4.49 MiB (70 %)
     Received 5.13 MiB (80 %)
     Received 5.77 MiB (90 %)
     Received 6.41 MiB (100 %)
.. download complete.

Configuring webserver PHP settings ..
.. done
Applying web server configuration ..
.. done
Now installing WordPress version 6.1.1 ..
WordPress installation completed. It can be accessed at https://a1z.us/w/wp01/.
More information on using this script can be found at http://wordpress.org/

The initial administration login is with the password 

.. done
Re-loading Webmin ..
.. done

can you upgrade within /wp-admin?

no. Get the error I cited earlier.

Upgrading phpMyAdmin to version 5.2.1 …

… failed dependencies : No PHP version could be found for this virtual server

Tried

  1. Disabling/enablin
  2. CGI Wrapper
  3. FCGId
  4. FPM

Nothing worked

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