RHEL 8.7 - install php_sodium and php8.0 (Moodle server)

Latest response

I need to use php_sodium as moodle is switching to it, I have discovered that the only practical way of getting php_sodium so I enable the remi repo and and switched everything over to that using php8.0.

dnf module list php && php -value
php remi-8.0 [e]
PHP Version => 8.0.27

All of that works, moodle is updated and working fine, but it fails the check for "php_sodium" must be installed.

So I install it, completes without errors.

dnf install php-sodium.x86_64 php80-php-sodium.x86_64

I was now expecting the command below to show the new sodium module, bit it does not - how do I get this module enabled?

php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

Further checking shows it at:

dnf list shows that php80-php-sodium.x86_64 is in /opt/remi/php80/root/usr/lib64/php/modules
dnf list installed *php*
Updating Subscription Management repositories.
Installed Packages
oniguruma5php.x86_64                                                                                                   6.9.8-1.el8.remi                                                                                                                       @remi-safe
php.x86_64                                                                                                             8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-cli.x86_64                                                                                                         8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-common.x86_64                                                                                                      8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-fpm.x86_64                                                                                                         8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-gd.x86_64                                                                                                          8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-intl.x86_64                                                                                                        8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-ldap.x86_64                                                                                                        8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-mbstring.x86_64                                                                                                    8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-mysqlnd.x86_64                                                                                                     8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-opcache.x86_64                                                                                                     8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-pdo.x86_64                                                                                                         8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-pecl-zip.x86_64                                                                                                    1.19.2-1.module+el8.6.0+13671+84712317                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-soap.x86_64                                                                                                        8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php-xml.x86_64                                                                                                         8.0.27-1.module+el8.7.0+17863+0ad92cd2                                                                                                 @rhel-8-for-x86_64-appstream-rpms
php80-php-common.x86_64                                                                                                8.0.28-1.el8.remi                                                                                                                      @remi-safe
php80-php-sodium.x86_64                                                                                                8.0.28-1.el8.remi                                                                                                                      @remi-safe
php80-runtime.x86_64               

Responses