Page 1 of 1
[SOLVED] php module version differs from php version

Posted:
Jan 7th, '22, 10:35
by flink
Under Mageia 8 I have the problem that some of the currently available php modules are of a different version than the command line interface PHP.
- Code: Select all
[franz@franz-820 Rector]$ rpm -qa | grep php
php-cli-8.0.14-1.mga8
php-xmlreader-8.0.14-1.mga8
php-posix-8.0.14-1.mga8
php-gd-8.0.14-1.mga8
php-ini-8.1.0-1.mga8
php-zip-8.0.14-1.mga8
php-cgi-8.1.0-1.mga8
php-ftp-8.0.14-1.mga8
php-openssl-8.1.0-1.mga8
php-sysvshm-8.1.0-1.mga8
php-tokenizer-8.0.14-1.mga8
php-mbstring-8.0.14-1.mga8
php-ctype-8.0.14-1.mga8
php-sysvsem-8.1.0-1.mga8
php-pdo-8.0.14-1.mga8
php-mysqli-8.0.14-1.mga8
php-intl-8.0.14-1.mga8
php-gettext-8.0.14-1.mga8
php-pear-File_Iterator-1.3.4-7.mga8
php-bz2-8.0.14-1.mga8
php-iconv-8.0.14-1.mga8
apache-mod_php-8.1.0-1.mga8
php-dom-8.0.14-1.mga8
php-phar-8.0.14-1.mga8
php-pdo_mysql-8.0.14-1.mga8
php-session-8.1.0-1.mga8
php-pear-1.10.12-5.2.mga8
phpmyadmin-5.1.1-1.mga8
php-xmlwriter-8.0.14-1.mga8
php-zlib-8.1.0-1.mga8
php-filter-8.0.14-1.mga8
php-channel-phpunit-1.3-17.mga8
php-mysqlnd-8.0.14-1.mga8
If I execute a PHP command, then I get these error messages:
- Code: Select all
[franz@franz-820 Rector]$ vendor/bin/rector process /home/franz/Arbeit/TYPO3/Extensions/div2007/
PHP Warning: PHP Startup: openssl: Unable to initialize module
Module compiled with module API=20210902
PHP compiled with module API=20200930
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: zlib: Unable to initialize module
Module compiled with module API=20210902
PHP compiled with module API=20200930
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: session: Unable to initialize module
Module compiled with module API=20210902
PHP compiled with module API=20200930
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: sysvsem: Unable to initialize module
Module compiled with module API=20210902
PHP compiled with module API=20200930
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: sysvshm: Unable to initialize module
Module compiled with module API=20210902
PHP compiled with module API=20200930
These options need to match
in Unknown on line 0
These are the PHP modules having wrong version 8.1.0-1.mga8
instead of 8.0.14-1.mga8 :
openssl
zlib
session
sysvsem
sysvshm
- Code: Select all
[franz@franz-820 Rector]$ rpm -qa | grep sysvshm
php-sysvshm-8.1.0-1.mga8
Re: php module version differs from php version

Posted:
Jan 7th, '22, 12:36
by morgano
PHP 8.1 is in backports.
This smells like
Bug 29830 - drakrpm autoselects dependencies from a disabled repo, and install them
For bug evaluation, do you remember or can see in log: What tool did you use to install the packages with wrong version? Did you select them manually, or did they come as dependencies?
You should either upgrade all PHP packages to 8.1 in backports (if your use is compatible with it), or downgrade the 8.1 packages to 8.0.14 in updates repo.
Re: php module version differs from php version

Posted:
Jan 7th, '22, 16:02
by flink
morgano wrote:PHP 8.1 is in backports.
This smells like
Bug 29830 - drakrpm autoselects dependencies from a disabled repo, and install them
The backport sources are not activated.
morgano wrote:For bug evaluation, do you remember or can see in log: What tool did you use to install the packages with wrong version? Did you select them manually, or did they come as dependencies?
I only remember to have used the Mageia 7 GNOME Live DVD for the installation, and later the upgrade by internet to get the latest RPM packages. I did not select anything manually.
morgano wrote:You should either upgrade all PHP packages to 8.1 in backports (if your use is compatible with it), or downgrade the 8.1 packages to 8.0.14 in updates repo.
I want to get back to 8.0.14 for all packages.
How can I do this?
Re: php module version differs from php version

Posted:
Jan 7th, '22, 16:14
by sturmvogel
There are several more packages with wrong version. You could try with (with sudo or su -)
- Code: Select all
urpmi --downgrade php-ini php-openssl php-cgi php-sysvshm php-sysvsem apache-mod_php php-session php-zlib
Re: php module version differs from php version

Posted:
Jan 7th, '22, 16:22
by flink
At first I have deinstalled Apache and all PHP packages.
Then I have executed the downgrade.
- Code: Select all
[franz@franz-820 Extensions]$ sudo urpmi --downgrade php-ini php-openssl php-cgi php-sysvshm php-sysvsem apache-mod_php php-session php-zlib
$MIRRORLIST: media/core/updates/php-openssl-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-session-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-zlib-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-cgi-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/apache-mod_php-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-ini-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-sysvsem-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-sysvshm-8.0.14-1.mga8.x86_64.rpm
installing apache-mod_php-8.0.14-1.mga8.x86_64.rpm php-openssl-8.0.14-1.mga8.x86_64.rpm php-session-8.0.14-1.mga8.x86_64.rpm php-zlib-8.0.14-1.mga8.x86_64.rpm php-cgi-8.0.14-1.mga8.x86_64.rpm php-sysvshm-8.0.14-1.mga8.x86_64.rpm php-ini-8.0.14-1.mga8.x86_64.rpm php-sysvsem-8.0.14-1.mga8.x86_64.rpm from /var/cache/urpmi/rpms
Preparing... ################################################################
1/8: php-session ################################################################
2/8: php-zlib ################################################################
3/8: php-cgi ################################################################
4/8: php-sysvshm ################################################################
5/8: php-sysvsem ################################################################
6/8: php-ini ################################################################
7/8: php-openssl ################################################################
8/8: apache-mod_php ################################################################
Re: php module version differs from php version

Posted:
Jan 7th, '22, 16:41
by flink
It works. Now I could reinstall the formerly deinstalled packages again. And the PHP script works fine now.
- Code: Select all
[franz@franz-820 Extensions]$ sudo urpmi apache-mod_php
Package apache-mod_php-8.0.14-1.mga8.x86_64 is already installed
[franz@franz-820 Extensions]$ sudo urpmi php-ctype php-pdo php-mysqli php-intl php-gettext php-bz2 php-iconv php-dom php-phar php-pdo_mysql php-xmlwriter php-filter php-mysqlnd
To satisfy dependencies, the following packages are going to be installed:
Package Version Release Arch
(medium "Core Updates")
php-bz2 8.0.14 1.mga8 x86_64
php-cli 8.0.14 1.mga8 x86_64
php-ctype 8.0.14 1.mga8 x86_64
php-dom 8.0.14 1.mga8 x86_64
php-filter 8.0.14 1.mga8 x86_64
php-gettext 8.0.14 1.mga8 x86_64
php-iconv 8.0.14 1.mga8 x86_64
php-intl 8.0.14 1.mga8 x86_64
php-mysqli 8.0.14 1.mga8 x86_64
php-mysqlnd 8.0.14 1.mga8 x86_64
php-pdo 8.0.14 1.mga8 x86_64
php-pdo_mysql 8.0.14 1.mga8 x86_64
php-phar 8.0.14 1.mga8 x86_64
php-xmlwriter 8.0.14 1.mga8 x86_64
9.9MB of additional disk space will be used.
2.3MB of packages will be retrieved.
Proceed with the installation of the 14 packages? (Y/n)
$MIRRORLIST: media/core/updates/php-intl-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-dom-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-phar-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-pdo_mysql-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-pdo-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-iconv-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-mysqli-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-mysqlnd-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-xmlwriter-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-cli-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-filter-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-ctype-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-gettext-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-bz2-8.0.14-1.mga8.x86_64.rpm
installing php-intl-8.0.14-1.mga8.x86_64.rpm php-phar-8.0.14-1.mga8.x86_64.rpm php-dom-8.0.14-1.mga8.x86_64.rpm php-pdo-8.0.14-1.mga8.x86_64.rpm php-pdo_mysql-8.0.14-1.mga8.x86_64.rpm php-iconv-8.0.14-1.mga8.x86_64.rpm php-xmlwriter-8.0.14-1.mga8.x86_64.rpm php-mysqli-8.0.14-1.mga8.x86_64.rpm php-mysqlnd-8.0.14-1.mga8.x86_64.rpm php-filter-8.0.14-1.mga8.x86_64.rpm php-ctype-8.0.14-1.mga8.x86_64.rpm php-cli-8.0.14-1.mga8.x86_64.rpm php-gettext-8.0.14-1.mga8.x86_64.rpm php-bz2-8.0.14-1.mga8.x86_64.rpm from /var/cache/urpmi/rpms
Preparing... ################################################################
1/14: php-mysqlnd ################################################################
2/14: php-bz2 ################################################################
3/14: php-cli ################################################################
4/14: php-pdo ################################################################
5/14: php-pdo_mysql ################################################################
6/14: php-phar ################################################################
7/14: php-mysqli ################################################################
8/14: php-gettext ################################################################
9/14: php-ctype ################################################################
10/14: php-filter ################################################################
11/14: php-xmlwriter ################################################################
12/14: php-iconv ################################################################
13/14: php-dom ################################################################
14/14: php-intl ################################################################
[franz@franz-820 Extensions]$ sudo urpmi php-cli php-posix php-gd php-zip php-ftp php-tokenizer php-mbstring
#
Packages php-posix-8.0.14-1.mga8.x86_64, php-cli-8.0.14-1.mga8.x86_64 are already installed
Marking php-cli as manually installed, it won't be auto-orphaned
writing /var/lib/rpm/installed-through-deps.list
$MIRRORLIST: media/core/updates/php-ftp-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-zip-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-mbstring-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-tokenizer-8.0.14-1.mga8.x86_64.rpm
$MIRRORLIST: media/core/updates/php-gd-8.0.14-1.mga8.x86_64.rpm
installing php-zip-8.0.14-1.mga8.x86_64.rpm php-ftp-8.0.14-1.mga8.x86_64.rpm php-gd-8.0.14-1.mga8.x86_64.rpm php-mbstring-8.0.14-1.mga8.x86_64.rpm php-tokenizer-8.0.14-1.mga8.x86_64.rpm from /var/cache/urpmi/rpms
Preparing... ################################################################
1/5: php-tokenizer ################################################################
2/5: php-mbstring ################################################################
3/5: php-gd ################################################################
4/5: php-ftp ################################################################
5/5: php-zip ################################################################
Re: php module version differs from php version

Posted:
Jan 7th, '22, 16:44
by morgano
flink wrote:morgano wrote:PHP 8.1 is in backports.
This smells like
Bug 29830
The backport sources are not activated.
That is exactly the bug: dependencies gets installed from a non activated repo.
Do you remember if you used drakrpm or urpmi?
Re: php module version differs from php version

Posted:
Jan 7th, '22, 16:59
by flink
I have only used an upgrade Applet to upgrade from Mageia 7 to 8 .
Re: [SOLVED] php module version differs from php version

Posted:
Jan 8th, '22, 13:06
by morgano
Oh crap. Thanks, added to bug.
Re: [SOLVED] php module version differs from php version

Posted:
Jan 13th, '22, 11:24
by flink
Now I want to install phpmyadmin using the MCC Software.
phpmyadmin wrote: Version: 5.0.4-1.mga8
Group: System/Servers
Architecture: noarch
Size: 44172 KB
Medium: Core 32bit Release
- Code: Select all
To satisfy dependencies, the following package(s) also need to be installed:
- apache-mod_php-8.1.0-1.mga8.x86_64
- php-cgi-8.1.0-1.mga8.x86_64
- php-channel-phpunit-1.3-17.mga8.noarch
- php-ini-8.1.0-1.mga8.x86_64
- php-openssl-8.1.0-1.mga8.x86_64
- php-pear-1.10.13-2.mga8.noarch
- php-pear-File_Iterator-1.3.4-7.mga8.noarch
- php-session-8.1.0-1.mga8.x86_64
- php-sysvsem-8.1.0-1.mga8.x86_64
- php-sysvshm-8.1.0-1.mga8.x86_64
- php-zlib-8.1.0-1.mga8.x86_64
45MB of additional disk space will be used.
It wants to bring back those wrong PHP modules again!

Re: [SOLVED] php module version differs from php version

Posted:
Jan 13th, '22, 12:08
by sturmvogel
What you can try:
- Remove ALL of your mirrors (except external ones like Google Chrome or smth like that)
- issue a urpmi --clean
- restart the system to be sure
- add a new mirrorset and enable only release and update sources and don't set the left package filter "View" in MCC to "Backports". Not even once!
- try again to install phpmyadmin via MCC
And i'm not sure if it has a relevance that you try to install the 32bit phpmyadmin package (according to your code snippet) so that the MCC wrongly tries to update the dependencies again.
Re: [SOLVED] php module version differs from php version

Posted:
Jan 13th, '22, 12:25
by morgano
Yes, the bug is that drakrpm installs deps from a disabled repo. (it installs the highest versions it find)
I think the easiest way to avoid it is to *remove* backports repository so drakrpm have no idea of it existing.
I.e run drakrpm-edit-media, select backport media(s) and hit the remove button.
Alternatively do not use MCC/drakrpm, but urpmi from command line instead.
Re: [SOLVED] php module version differs from php version

Posted:
Jan 13th, '22, 12:36
by flink
I do not have any activated backport sources.
Re: [SOLVED] php module version differs from php version

Posted:
Jan 13th, '22, 12:37
by flink
The installation of phpmyadmin works fine on the command line.
- Code: Select all
[franz@franz-820 fh_debug.git]$ sudo urpmi phpmyadmin
[sudo] password for franz:
To satisfy dependencies, the following packages are going to be installed:
Package Version Release Arch
(medium "Core Release")
php-channel-phpunit 1.3 17.mga8 noarch
php-pear-File_Iterator 1.3.4 7.mga8 noarch
(medium "Core Updates")
php-pear 1.10.12 5.2.mga8 noarch
phpmyadmin 5.1.1 1.mga8 noarch
49MB of additional disk space will be used.
8.5MB of packages will be retrieved.
Proceed with the installation of the 4 packages? (Y/n) y
Sorry, bad choice, try again
To satisfy dependencies, the following packages are going to be installed:
Package Version Release Arch
(medium "Core Release")
php-channel-phpunit 1.3 17.mga8 noarch
php-pear-File_Iterator 1.3.4 7.mga8 noarch
(medium "Core Updates")
php-pear 1.10.12 5.2.mga8 noarch
phpmyadmin 5.1.1 1.mga8 noarch
49MB of additional disk space will be used.
8.5MB of packages will be retrieved.
Proceed with the installation of the 4 packages? (Y/n) y
$MIRRORLIST: media/core/release/php-pear-File_Iterator-1.3.4-7.mga8.noarch.rpm
$MIRRORLIST: media/core/release/php-channel-phpunit-1.3-17.mga8.noarch.rpm
$MIRRORLIST: media/core/updates/php-pear-1.10.12-5.2.mga8.noarch.rpm
$MIRRORLIST: media/core/updates/phpmyadmin-5.1.1-1.mga8.noarch.rpm
installing phpmyadmin-5.1.1-1.mga8.noarch.rpm php-pear-File_Iterator-1.3.4-7.mga8.noarch.rpm php-channel-phpunit-1.3-17.mga8.noarch.rpm php-pear-1.10.12-5.2.mga8.noarch.rpm from /var/cache/urpmi/rpms
Preparing... ######################################################################
1/4: php-pear ######################################################################
2/4: php-channel-phpunit ######################################################################
3/4: php-pear-File_Iterator
######################################################################
install ok: channel://pear.phpunit.de/File_Iterator-1.3.4
4/4: phpmyadmin ######################################################################
----------------------------------------------------------------------
More information on package phpmyadmin-5.1.1-1.mga8.noarch
The actual configuration file is /etc/phpmyadmin/config.inc.php
The /usr/share/phpmyadmin/config.default.inc.php file contains default
values, and is not supposed to be modified.
Re: [SOLVED] php module version differs from php version

Posted:
Jan 13th, '22, 12:41
by morgano
flink wrote:I do not have any activated backport sources.
Yes the bug is that drakrpm use them even if not activated.
You have to *remove* them, to make sure drakrpm do not use them.
Or use urpmi, which seem to not have this quirk. dnf I suppose works too.
flink wrote:The installation of phpmyadmin works fine on the command line.
Exactly

Re: [SOLVED] php module version differs from php version

Posted:
Jan 13th, '22, 12:52
by flink
Now I have understood. I have never noticed that the entry lines can be removed from the dialog box. Done.
Re: [SOLVED] php module version differs from php version

Posted:
May 16th, '22, 06:12
by morgano
@flink: for bug evaluation purpose, do you possibly have the upgrade log?
Re: [SOLVED] php module version differs from php version

Posted:
May 16th, '22, 06:41
by flink
morgano wrote:@flink: for bug evaluation purpose, do you possibly have the upgrade log?
Which file is the upgrade log?
Re: [SOLVED] php module version differs from php version

Posted:
May 16th, '22, 08:15
by benmc
flink wrote:Which file is the upgrade log?
upgrade log is found here: /root/drakx/install.log. you will need to be root to access it.
copy to your documents directory.
attach and upload here.
and also
attach to =>
https://bugs.mageia.org/show_bug.cgi?id=29830thanks
Re: [SOLVED] php module version differs from php version

Posted:
May 16th, '22, 11:35
by morgano
Upload only as attachement the bug would suffice.
It is big, so please compress using xz, i.e issue
xz /root/drakx/install.log
And then upload /root/drakx/install.log.xz
Re: [SOLVED] php module version differs from php version

Posted:
May 16th, '22, 16:05
by flink
No file exists under /root/drakx.
- Code: Select all
[root@franz-820 ~]# ls -l /root/drakx/install.log
ls: cannot access '/root/drakx/install.log': No such file or directory
[root@franz-820 ~]# find / -name install.log -ls
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
[root@franz-820 ~]# cd /root/drakx/
[root@franz-820 drakx]# ls -l
total 0
Re: [SOLVED] php module version differs from php version

Posted:
May 31st, '22, 08:07
by papoteur
Hello,
As the installation is an upgrade from Mageia 7, the history is in the journal. But since this time, it has probably been deleted. To check.
You can use:
- Code: Select all
journalctl --list-boot
to see if the period of the upgrade is included.
Re: [SOLVED] php module version differs from php version

Posted:
May 31st, '22, 09:26
by flink
papoteur wrote:Hello,
As the installation is an upgrade from Mageia 7, the history is in the journal. But since this time, it has probably been deleted. To check.
You can use:
- Code: Select all
journalctl --list-boot
to see if the period of the upgrade is included.
The log file entries for January 7th 2022 are not available any more.
- Code: Select all
[root@franz-820 ~]# journalctl --list-boot
-72 59a8d9b49d2e4e1f89e138a7cb8c26c3 Fri 2022-03-25 22:49:49 CET—Sat 2022-03-26 01:48:38 CET
-71 f8ea01bdd1014882992dd79e68b057a5 Sat 2022-03-26 06:45:50 CET—Sun 2022-03-27 00:30:09 CET
-70 27266c91c0a6408d8132e0e3d8a1531b Sun 2022-03-27 06:43:07 CEST—Mon 2022-03-28 00:44:10 CEST
-69 a6874d2d4ba34951a0e67fdd06201f75 Mon 2022-03-28 06:40:03 CEST—Tue 2022-03-29 02:05:49 CEST
-68 5605652a8c3c4045983dd482b10c5261 Tue 2022-03-29 08:09:34 CEST—Wed 2022-03-30 00:22:26 CEST
-67 f1c685ef033f4e1eb909162e40ab4c9d Wed 2022-03-30 06:06:15 CEST—Thu 2022-03-31 00:52:24 CEST