Skip to content
Advertisement

CentOS 7 – Impossible to install PHP 7.3

I want to enable php73 as default version and install all packages related to it. So I did:

JavaScript

And then:

JavaScript

Right after, I can see that it wants to install PHP 8.0 (remi-php80, which breaks my project dependencies):

JavaScript

How can I enable & force installation of PHP 7.3 on Centos 7?

I want to avoid doing it manually like: $ sudo yum install php73 php73-php-cli php73-php-fpm

Advertisement

Answer

If you want PHP 7.3 you must only enable “remi-php73” repository (and “remi-safe“, which is enabled by default).

According to yum output in your question “remi-php80” is wrongly enabled. You can wheck which repositories are enabled using

JavaScript

For a proper repository configuration, see the Wizard instructions

JavaScript

About mcrypt extension, I recommend you get rid of it, see About libmcrypt and php-mcrypt

And I think you don’t need both php (mod_php for Apache HTTP Server) and php-fpm

And for php-oci8, I recommend you read Installation of Oracle extensions for PHP

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement