Where is PHP 7.4?

I not so recently (about six months ago) followed the instructions at https://www.virtualmin.com/documentation/web/multiplephp to install PHP 7.3 on CentOS 7. So I figured that yum list php74 would show me PHP 7.4, but neither it (nor a bunch of other searches using yum) nor a search at https://www.softwarecollections.org/ show 7.4 being available from SCL. (Oddly, even PHP 7.3 doesn't show up on the website, but it does under yum.) The SCL repos are enabled on this server.

Am I missing something? Why isn't it there? Do I need to use the Remi repo? Speaking of Remi, even his website refers to 7.4 being in the SCL: https://blog.remirepo.net/post/2019/05/22/PHP-7.4-as-Software-Collection

Thanks.

Craig

Status: 
Active
Virtualmin version: 
6.12
Webmin version: 
1.955

Comments

I think you'd need to ask the repo maintainers about this - Virtualmin will detect PHP 7.4 if installed, but we don't own those repos.

Try running "yum clean all" to flush any caches though.

I think you'd need to ask the repo maintainers about this - Virtualmin will detect PHP 7.4 if installed, but we don't own those repos.

Try running "yum clean all" to flush any caches though.

Hi Jamie,

Thanks for your reply. Yes, it makes sense to ask the SCL repo maintainers the specific question about why PHP 7.4 isn't in their repo when 7.3 is. I did try yum clean all and it made no difference.

The point of asking here is illustrated by linking to the Virtualmin article, that ends at 7.3 for CentOS 7, when 7.4 is available, and then asking the follow-up question about how Virtualmin recommends I do that. Do you suggest that using the Remi repo, after previously using and still having SCL configured, is fine?

Or, if you prefer, brand new question:

How do you suggest I upgrade from PHP 7.3 to 7.4, or install PHP 7.4 under CentOS 7?

Thanks.

Craig

Ilia's picture
Submitted by Ilia on Sun, 09/27/2020 - 03:38

I tried REMI repos many times and it seems a good choice to go with. I would only suggest using safe repos, which do not remove existing, default packages.

May I ask - why do you need PHP 7.4?

Hi Ilia,

I was planning to use IUS, until I remembered that I had used SCL before on the same server. Remi was my third choice. I think I may have used Remi's repos for something years ago.

I don't need 7.4 myself, for business or personally, but a user on the server claims to need it. It's not an unreasonable request to have the current version of software. That said, their developer is a pain in the rear, and they won't work on 7.3 because ... it's not 7.4!

I'm not against using Remi, but what should have been a simple solution to just yum install php74 from SCL has turned into justifying why I need it and wondering about potential issues with using SCL for 7.3 and Remi (or any other repo) for 7.4 on the same Virtualmin system.

Which is why I'm asking about it here.

I should, quite frankly, start working on Virtualmin with CentOS 8 -- which will apparently address this issue with AppStreams -- but that will just open another can of worms with the developer.

Craig

Ilia's picture
Submitted by Ilia on Sun, 09/27/2020 - 04:55

Craig,

It's not an unreasonable request to have the current version of software. That said, their developer is a pain in the rear, and they won't work on 7.3 because ... it's not 7.4!

You could provide them even with PHP 8.0-beta, as it's available on REMI repos as well. ;--)

Which is why I'm asking about it here.

In case it's installed from remi-safe, it's not replacing any packages and can be easily uninstalled. I've updated docs of how to install PHP 7.4 on CentOS 7.

Hi Ilia,

Thanks. Appreciate the update. The installation appears to have succeeded.

Not installing 8.0 yet! :)

Craig