Comments on: How to Install PHP 7.4 on on Rocky Linux and AlmaLinux https://www.tecmint.com/install-php-7-on-rocky-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 27 Jun 2024 04:27:45 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/install-php-7-on-rocky-linux/comment-page-1/#comment-2184536 Thu, 27 Jun 2024 04:27:45 +0000 https://www.tecmint.com/?p=43233#comment-2184536 In reply to sib.

@Sib

PHP 7 has reached its end of life (EOL). As of November 28, 2022, PHP 7.4, the last release in the PHP 7 series, is no longer receiving security updates or support.

This means it’s recommended to upgrade to PHP 8.x for continued security updates and support.

]]>
By: sib https://www.tecmint.com/install-php-7-on-rocky-linux/comment-page-1/#comment-2184385 Wed, 26 Jun 2024 13:10:15 +0000 https://www.tecmint.com/?p=43233#comment-2184385 dnf module list php shows only PHP 8.1 and 8.2, no version 7 anymore.

]]>
By: Ravi Saive https://www.tecmint.com/install-php-7-on-rocky-linux/comment-page-1/#comment-1603357 Wed, 06 Oct 2021 04:51:51 +0000 https://www.tecmint.com/?p=43233#comment-1603357 In reply to Cris.

@Cris,

Thanks for the useful tip.

]]>
By: Cris https://www.tecmint.com/install-php-7-on-rocky-linux/comment-page-1/#comment-1603058 Tue, 05 Oct 2021 21:04:22 +0000 https://www.tecmint.com/?p=43233#comment-1603058 You may get an error like this:

[user@localhost ~]$ sudo dnf module enable php:7.4
Last metadata expiration check: 2:14:26 ago on Tue 05 Oct 2021 08:30:16 PM CEST.
Dependencies resolved.
The operation would result in the switching of module ‘php’ stream ‘7.2’ to stream ‘7.4’
Error: It is not possible to switch enabled streams of a module.

It is recommended to remove all installed content from the module, and reset the module using the ‘dnf module reset ‘ command. After you reset the module, you can install the other stream.

If you do, you can fix it with these commands:

 [user@localhost ~]$ sudo dnf module reset php
 [user@localhost ~]$ sudo dnf module enable php:7.4
 [user@localhost ~]$ sudo dnf module switch-to php:7.4

Hope this helps

]]>