Php extension for Wordpress missing

dear all

greetings of the day,

I am a new user of yunohost and while its been working smoothly I recently upgraded to YunoHost 4.0.4 hosted on a VPS ruling Debian 9.

I am getting the error

bad gateway

previously it was showing that php is missing an extension for Wordpress

when I check the system upgrades php-mysql is available to upgrade but when I try to upgrade I get the following log

2020-08-31 08:48:12,510: INFO - + Reading package lists…
2020-08-31 08:48:12,712: INFO - + Building dependency tree…
2020-08-31 08:48:12,713: INFO - + Reading state information…
2020-08-31 08:48:12,814: INFO - + Calculating upgrade…
2020-08-31 08:48:13,015: INFO - + The following packages have been kept back:
2020-08-31 08:48:13,016: INFO - + php-mysql
2020-08-31 08:48:13,016: INFO - + 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2020-08-31 08:48:13,018: SUCCESS - System upgraded

Hmmokay, so can you show the output of :

apt install php-mysql

and

apt policy php-mysql

apt install php-mysql

gives the following error

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

php-mysql : Depends: php7.3-mysql but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

and

apt policy php-mysql

gives

php-mysql:
Installed: 1:7.0+49
Candidate: 2:7.3+69
Version table:
2:7.4+76+0~20200511.26+debian10~1.gbpc9beb6 200
200 https://packages.sury.org/php buster/main amd64 Packages
2:7.3+69 500
500 http://ftp.nl.debian.org/debian buster/main amd64 Packages
*** 1:7.0+49 100
100 /var/lib/dpkg/status

Mokay then same thing for php7.3-mysql :

apt install php7.3-mysql
apt policy php7.3-mysql

apt install php7.3-mysql

Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php7.3-mysql : Depends: php7.3-common (= 7.3.19-1~deb10u1) but 7.3.21-1+0~20200807.66+debian10~1.gbp18a1c2 is to be installed
E: Unable to correct problems, you have held broken packages.

apt policy php7.3-mysql

php7.3-mysql:
Installed: (none)
Candidate: 7.3.19-1~deb10u1
Version table:
7.3.21-1+0~20200807.66+debian10~1.gbp18a1c2 200
200 https://packages.sury.org/php buster/main amd64 Packages
7.3.19-1~deb10u1 500
500 http://ftp.nl.debian.org/debian buster/main amd64 Packages

Hmokay if my intuition is right you can try:

apt install php7.3-mysql php7.3-common=7.3.19-1~deb10u1
1 Like

installed

So now possibly your initial issue should be fixed…

1 Like

I have run

apt install php-mysql

this was what I got

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
acl at libarchive13 libfl2 libgpgme11 libldb1 libmcrypt4 libsmbclient libtalloc2 libtdb1 libtevent0 libwbclient0 libxmlrpc-epi0 libzip4 php-mcrypt php7.0-mcrypt php7.0-zip postgresql python-gpg python-ldb
python-samba python-talloc python-tdb samba-common samba-common-bin samba-dsdb-modules samba-libs smbclient ttf-dejavu-core
Use ‘apt autoremove’ to remove them.
The following packages will be upgraded:
php-mysql
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,992 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 Studenten Net Twente - Index of /debian/ buster/main amd64 php-mysql all 2:7.3+69 [5,992 B]
Fetched 5,992 B in 0s (27.2 kB/s)
(Reading database … 53787 files and directories currently installed.)
Preparing to unpack …/php-mysql_2%3a7.3+69_all.deb …
Unpacking php-mysql (2:7.3+69) over (1:7.0+49) …
Setting up php-mysql (2:7.3+69) …

Just checked services from admin dashboard

php7.3 fpm
status dead
status on boot masked
configuration broken

Mokay then let’s look at the output of sudo php7.3-fpm --test

sudo: php7.3-fpm: command not found

Zgrblml let’s apt install php7.3-fpm then …

1 Like

Thank you soo much for the assistance and guidance…

this works, its running, enabled and valid…though I am still getting the error

502 bad gateway

when I visit the Wordpress websites, even after restarting NGINX service

Can you check that there’s no pending migration in Tools > Migrations (specifically migration 16 or 17 (i don’t remember) about PHP 7.0 -> 7.3)

No pending migrations

upgraded the Wordpress application and the websites are back …

thank you soo much you have been really helpful…

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