php7.3 installed but php7.2.22 is used

PHP7.3 is not recognized by virtualmin or wordpress.

More info posted here: https://virtualmin.com/node/66439#comment-817679

Status: 
Closed (fixed)

Comments

It was that only one php fpm version is supported in virtualmin, it still is?

somehow php7.3 is now being used, however there is a new issue which appears to be the same as https://www.virtualmin.com/node/64771

Checking/setting Directory permissions 3 times and still unable to add a plugin without the error :

Installation failed: Could not create directory.

This is very frustrating and costing a lot of time. (basically all day just to upgrade php)

We do support multiple PHP-FPM versions now.

What output do you get if you run virtualmin check-config ?

virtualmin check-config Your system has 1.95 GB of memory, which is at or above the Virtualmin recommended mini mum of 256 MB.

BIND DNS server is installed, and the system is configured to use it.

Mail server Postfix is installed and configured.

Postfix can support per-domain outgoing IP addresses, but is not currently configured t o do so. This can be setup in the Postfix Mailserver module.

The following PHP versions are available : 7.2.22 (/usr/bin/php-cgi7.2), 7.3.9 (/usr/bi n/php-cgi7.3)

The following PHP-FPM versions are available on this system : 7.2 7.3.9

Webalizer is installed.

ProFTPD is installed.

Logrotate is installed.

SpamAssassin and Procmail are installed and configured for use.

ClamAV is installed and assumed to be running.

Plugin AWstats reporting is installed OK.

Plugin Protected web directories is installed OK.

Plugin Nginx website is installed OK.

Plugin Nginx SSL website is installed OK.

Plugin Additional content styles is installed OK.

Plugin Virtualmin Support Links is installed OK.

Using network interface ens3 for virtual IPs.

IPv6 addresses are available, using interface ens3.

Default IPv4 address for virtual servers is 45.32.157.235.

Default IPv6 address for virtual servers is fe80::5400:2ff:fe06:7ca4.

Both user and group quotas are enabled for home and email directories.

All commands needed to create and restore backups are installed.

Resource limits are supported and configured correctly.

The selected package management and update systems are installed OK.

Chroot jails are available on this system

The Virtualmin APT repository is configured correctly

OK

Fixed the plugin installation problem by changing the owner of wp-content and wp-content/plugins to www-data

  1. ps -ef|grep php-fpm (the owner of this process must own the wp-content and wp-content/plugins directories.
ps -ef|grep php-fpm

root       694     1  0 18:12 ?        00:00:00 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)

www-data  1401   694  0 18:13 ?        00:00:08 php-fpm: pool www
www-data  1406   694  0 18:13 ?        00:00:08 php-fpm: pool www
www-data  2629   694  0 18:15 ?        00:00:07 php-fpm: pool www

2.changed owner of wp-content/plugins to www-data

sudo chown -R www-data:www-data wp-content/plugins/

sudo chmod 775 wp-content

sudo chown -R www-data:www-data wp-content/
Status: Active » Fixed
Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.