goodspb / pdlib

PHP extension for Dlib.
MIT License
71 stars 19 forks source link

Ubuntu 18.04 "The library pdlib is not available." under php7.2-fpm #31

Closed hellkaim closed 4 years ago

hellkaim commented 4 years ago

So I followed the path of compile and install all required libs and indeed I can see from CLI the library is there.

php -m| grep pd
pdlib

But from PHP7.2-fpm it seems that there is no libraryactivated.

I tried to add extension="pdlib.so" to php/7.2/php.ini & php/7.2/cli/php.ini & php/7.2/fpm/php.ini & php/7.2/mods-available/pdlib.ini

The only part that confirms the library is there is a cli. Please advice how to activate it under PHP7.2-fpm

hellkaim commented 4 years ago

Ok, Issue closed: Just had to make a link as follows: ln -s /etc/php/7.2/mods-available/pdlib.ini /etc/php/7.2/fpm/conf.d/20-pdlib.ini in order FPM to see the lib. Better to add it to the install instructions.