It's probably a third party solution i've running on that other server than.
But I found the third-party db_lib rpm (
https://www.rpmfind.net/linux/rpm2html/search.php?query=php70-php-pdo-dblib) for php 7.
Can you help me out on how to add this to the default plesk php 7 php-fpm?
Well. As far as I see, there are only
64-bit packages. All steps below can be applied only if you have 64-bit system.
You can try to do following:
1. Check version of your php7:
/opt/plesk/php/7.0/bin/php -v
PHP 7.0.7 (cli) (built: May 27 2016 10:48:24) ( NTS )
2. Upload on your server package from your link for corresponding php version. For example php70-php-pdo-dblib-
7.0.7-1.fc24.remi.x86_64.rpm
3. Unpack this package with
# rpm2cpio < php70-php-pdo-dblib-7.0.7-1.fc24.remi.x86_64.rpm |cpio --extract --make-directories
4. Copy lib file to correct place and create ini file:
# cp /root/opt/remi/php70/root/usr/lib64/php/modules/pdo_dblib.so /opt/plesk/php/7.0/lib/php/modules/
# echo "extension=pdo_dblib.so" > /opt/plesk/php/7.0/etc/php.d/pdo_dblib.ini
5. Reread php handlers:
# plesk bin php_handler --reread
6. Go to Tools&Settings -> PHP Settings -> 7.0.7 FPM application and check that you have this enabled:
7. Check with phpinfo() that this module is correctly loaded.
Try to use it if all looks fine. But NOTE - all these steps in "dirty hack" and I do not guarantee that it will work as expected
But you can try at least.