Instalar version 7.1 en Rocky linux

Buenos días,

Necesito instalar una versión antigua de php 7.1 en Rocky porque si lo hago con una versión nueva se rompen las clases. Tiene que ser anterior a la 7.2,

Podrían decirme como instalarla?

Sorry for answering in English (but probably better to use English here for more people to understand)

NOTICE: PHP versions before 7.4 are now EOL and not supported upstream (PHP Project) nor by RHEL (so by Rocky Linux)

A possible way to keep using old versions is to use my repository

  • For distribution version 8
    • PHP version 7.2 to 8.1 as module
    • PHP version 5.6 to 8.2 as SCL
  • For distribution version 9
    • PHP version 7.4 to 8.1 as module
    • PHP version 7.4 to 8.2 as SCL

See the wizard instructions:
https://rpms.remirepo.net/wizard/

P.S. builds of EOL versions in my repository include backports of recent security fixes, but the upgrade to a supported version is still recommended. PHP 7.4 will be maintained for the whole distribution life in 8 (PHP 8.0 in 9)

2 Likes

Remi’s repo is great. I’ve used it for PHP 7.1.x in the past and currently using it for 8.1. The wizard will help you get the repo set up to install php 7.1 as mentioned above.

It would be recommended though to update your application to use a newer version of PHP though, as stated already by Remi above.