Warnings after latest PHP interpreters update  [SOLVED]

Locked
Eoler
Posts: 17
Joined: Tue 2. Jul 2019, 01:20

Warnings after latest PHP interpreters update

Post by Eoler »

Started tonight on KeyHelp 21.0 (Build 2195) / Ubuntu 18.04 LTS:

first the LibSSL got updated:

Code: Select all

The following packages will be upgraded: libssl1.1 openssl
then PHP interpreters:

Code: Select all

[26-Mar-2021 04:09:24] INFO  --> update version from "7.4.14_20210120083952" to "7.4.16_20210324130734"
[26-Mar-2021 04:09:24] INFO  --> update tmpfs for full access to /tmp
[26-Mar-2021 04:09:42] INFO  --> version "7.4.16_20210324130734" successfully updated
and now there are warnings, example from CRON job email notification:

Code: Select all

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/keyhelp/php/7.4/lib/php/extensions/no-debug-non-zts-20190902/ssh2.so' (tried: /opt/keyhelp/php/7.4/lib/php/extensions/no-debug-non-zts-20190902/ssh2.so (libssh2.so.1: cannot open shared object file: No such file or directory), /opt/keyhelp/php/7.4/lib/php/extensions/no-debug-non-zts-20190902//opt/keyhelp/php/7.4/lib/php/extensions/no-debug-non-zts-20190902/ssh2.so.so (/opt/keyhelp/php/7.4/lib/php/extensions/no-debug-non-zts-20190902//opt/keyhelp/php/7.4/lib/php/extensions/no-debug-non-zts-20190902/ssh2.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
another one from log rotate:

Code: Select all

/etc/cron.daily/logrotate:
error: error running shared postrotate script for '/var/log/apache2/*.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1
User avatar
Alexander
Keyweb AG
Posts: 3814
Joined: Wed 20. Jan 2016, 02:23

Re: Warnings after latest PHP interpreters update  [SOLVED]

Post by Alexander »

Hello,

The libraries for using the PHP-SSH2 extension seem to be missing on your system.
You can install them and the PHP Warning should disappear.

Code: Select all

apt-get install libssh2-1

The log rotate error seems to have an other cause, as it is not related the PHP interpreter update.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Eoler
Posts: 17
Joined: Tue 2. Jul 2019, 01:20

Re: Warnings after latest PHP interpreters update

Post by Eoler »

Alexander wrote: Fri 26. Mar 2021, 11:47 The libraries for using the PHP-SSH2 extension seem to be missing on your system.
You can install them and the PHP Warning should disappear.

Code: Select all

apt-get install libssh2-1
That was it, much appreciated.
Pendora
Posts: 1
Joined: Tue 23. Oct 2018, 19:15

Re: Warnings after latest PHP interpreters update

Post by Pendora »

I had the same problem - called by an existing Cronjob for my NextCloud.
First thought that the called cron.php file has a bug or the calling php interpreter was wrong

installing libssh2-1 solved this problem!

Thx
User avatar
Alexander
Keyweb AG
Posts: 3814
Joined: Wed 20. Jan 2016, 02:23

Re: Warnings after latest PHP interpreters update

Post by Alexander »

I will add it to the setup routine of the PHP interpreter, so it should not be an issue anymore in the future.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Locked