Page 1 of 1

Warnings after latest PHP interpreters update

Posted: Fri 26. Mar 2021, 07:15
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

Re: Warnings after latest PHP interpreters update  [SOLVED]

Posted: Fri 26. Mar 2021, 11:47
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.

Re: Warnings after latest PHP interpreters update

Posted: Fri 26. Mar 2021, 12:10
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.

Re: Warnings after latest PHP interpreters update

Posted: Sat 27. Mar 2021, 09:15
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

Re: Warnings after latest PHP interpreters update

Posted: Mon 29. Mar 2021, 09:47
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.