1 (edited by jethro 2020-09-01 17:09:19)

Topic: Cannot find some extensions for PHP 7.1

Hi, my work requires PHP 7.1, so I enabled the remi-php71 repository and manually using 25 as my $releasever (though I am using Fedora 32). Most of the extensions I need, such as php71-php-pecl-mysql, php71-php-gd, etc., do appear to be found in the repo.

However I can't seem to find (the Ubuntu equivalent of) php71-curl, php71-dom and php71-sqlite3.

At this point, I'm not sure if the issue is related to me using an older version of PHP, as those packages also don't seem to be available for newer PHP and Fedora versions, so am I missing something obvious here?

Re: Cannot find some extensions for PHP 7.1

> Hi, my work requires PHP 7.1, so I enabled the remi-php71

Bad, "remi-php71" repository doesn't exists for F32..
See the Wizard instructions

> Most of the extensions I need, such as php71-php-pecl-mysql, php71-php-gd, etc., do appear to be found in the repo.

Indeed.
And also, you have to use the SCL for old version (< 7.4 by default on F32), so the php71-php* packages.

BTW, I don't think you need the old deprecated "mysql" extension, else your code is really wrong
=> https://www.php.net/manual/en/book.mysql.php

You rather need the "mysqli" or "pdo_mysql" ext.
=> https://www.php.net/manual/en/book.mysqli.php
=> https://www.php.net/manual/en/ref.pdo-mysql.php

> However I can't seem to find (the Ubuntu equivalent of) php71-curl, php71-dom and php71-sqlite3.

As explained by the wizard, if you need "foo", you have to install "php71-php-foo"

So, in you case

dnf install php71-php-curl php71-php-dom php71-php-sqlite3

And to check available extension, as the wizard said

php71 --modules

And also, time to plan an upgrade to a supported version
https://www.php.net/supported-versions.php

Desktop: Fedora 31 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 32 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: Cannot find some extensions for PHP 7.1

Really appreciate the detailed and informative pointers, I'll try them out.

> You rather need the "mysqli" or "pdo_mysql" ext.
I'll bring it up to my team at work in due time. But as I'm just starting out, I plan to get everything running first, and the old mysql extension is what they currently still use.