Installing custom php extension does not show in phpinfo() even though ini file calls it

520 views Asked by At

I used to have this extension running before my reinstall of php. phpinfo() shows my ini file is located at /etc/php/7.4/apache2/php.ini

In the php.ini file I have:

extension=/usr/lib/php/20190902/libpuzzle.so

The error.log shows:

PHP Warning: PHP Startup: Unable to load dynamic library 'libpuzzle.so' (tried: /usr/lib/php/20190902/libpuzzle.so (/usr/lib/php/20190902/libpuzzle.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/libpuzzle.so.so (/usr/lib/php/20190902/libpuzzle.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

I don't know why but in the log it says: libpuzzle.so.so. So I also created a libpuzzle.so.so in addition to libpuzzle.so. Restarted Apache and still, phpinfo will not show libpuzzle nor does libpuzzle work. Libpizzle required the GD library and I have the gd library installed and enabled. I verified the file exists and the permissions are root:root 644 just like all the other extension.

php -m does not show it as loaded either.

I am lost now and don't know where to look to get this up and running. Any help on what to do next?

0

There are 0 answers