I am a Joomla user and for a few days I have been getting a notice in the control panel that I have to update my PHP version which is now 8.0.30
I’m using Rocky Linux 8.8 and searching the internet I found that you can update your PHP version to 8.1 via the REMI repository with this command:
# dnf install php81
I have some questions:
The first is if this command would overwrite my current version of PHP to 8.1-4? I have run the command and it only tells me that it updates a few PHP modules, should I manually update the modules that don’t update or are compatible?
The second is if you plan to upgrade PHP to 8.1 from Rocky Linux 8.8 or if PHP 8.1 only works with Rocky Linux 9
EL-8 provides PHP 7.4 (full distro life support) and 8.0
EL-9 provides PHP 8.0 (full distro life support) and 8.1
“remi repository” provides PHP 7.4 to 8.3 as base packages (modules) and as Software Collections.
I’m using Rocky Linux 8.8 and searching the internet I found that you can update your PHP version to 8.1 via the REMI repository with this command:
# dnf install php81
No (excepted if you want multiple versions)
I have some questions:
The first is if this command would overwrite my current version of PHP to 8.1-4? I have run the command and it only tells me that it updates a few PHP modules, should I manually update the modules that don’t update or are compatible?
If I execute the command # dnf install php81, would version 8.0.30 be overwritten or could I choose which version of PHP would run on each virtual server?
If you follow the Wizard instructions for “single/default version”, it will be updated
If you follow the Wizard instructions for “multiple versions”, it will be installed beside the default version (like 5.6 and 7.4 are)
In your article, you explain how to use “php-cgi” which is probably the worst way (performance) to execute PHP, yous should use “php-fpm” instead, you can read: