Hi
I am trying to install a custom .so PHP extension in PHP 7.3. The phpinfo() command shows my PHP extension dir to be "/opt/cpanel/ea-php73/root/usr/lib64/php/modules" so I tried adding the maxminddb.so extension there. The GitHub page installation docs said I needed to add the following in the PHP 7.3 ini file:
I restarted PHP-FPM and Apache but my code throws an error because it can't find the class:
I was expecting the extension/module to show up in phpinfo() but it doesn't, which rather looks as though it is not being loaded. Am I doing this correctly? Perhaps it is not possible to load custom extensions. Can anyone help?
Thanks
I am trying to install a custom .so PHP extension in PHP 7.3. The phpinfo() command shows my PHP extension dir to be "/opt/cpanel/ea-php73/root/usr/lib64/php/modules" so I tried adding the maxminddb.so extension there. The GitHub page installation docs said I needed to add the following in the PHP 7.3 ini file:
Code:
extension=maxminddb.so
Code:
Fatal error: Uncaught Error: Class 'MaxMind\Db\Reader' not found
Thanks