My PHP 7.2 application is giving the error
Message: Class 'NumberFormatter' not found
We are running:
- PHP 7.2.34
- CentOS Linux release 7.9.2009 (Core)
I tried to install PHP-intl and it seemed to work as now if I try again I get this:
# yum install php72-php-intl # Package php72-php-intl-7.2.34-4.el7.remi.x86_64 already installed and latest version # Nothing to do
I have reloaded Apache but the extension is not loaded:
php -mdoes not list the module.
- /usr/lib64/php/modules does not contain
rpm -ql php72-php-intl I can see these files are installed:
But the extension_dir is set to /usr/lib64/php/modules
Why is it installed to this other location? And how can I either get it to install to the correct modules directory or otherwise what is the correct way to tell PHP to load the .so file from /opt/remi/php72/root/usr/lib64/php/modules ?