Can't make pdo_dblib to work
Hi.
I'm trying to compile and enable pdo_dblib, but isn't loading. I've downlaoded source code of PHP 7.1.16 (which is the same version that I'm using in my cpanel), entered dir 'ext/pdo_dblib' and done these commands to compile:
/opt/cpanel/ea-php71/root/usr/bin/phpize
./configure --with-php-config=/opt/cpanel/ea-php71/root/usr/bin/php-config --with-pdo-dblib=/opt/cpanel/freetds --with-libdir=/lib64
make
All runs fine. After 'make install', module are installed in correct location (/opt/cpanel/ea-php71/root/usr/lib64/php/modules/pdo_dblib.so). I also have enabled this module in correct php.ini, but when I try to load any script (including phpinfo()), I can't see this module.....module isn't loaded! And I can't see any errors, nothing.
Also tryied to manuallo load module with:
/opt/cpanel/ea-php71/root/usr/bin/php -dextension=/opt/cpanel/ea-php71/root/usr/lib64/php/modules/pdo_dblib.so myphpfile.php
But still not working, module looks not loaded and no errors. My question is: there is any block or anything else that I need to do?
-
Hello @jmaurin, Can you revert the existing steps you've taken thus far and try using the steps reccomended on the following comment from our feature request website? EasyApache 4 PDO_DBLIB (mssql support) Thank you. 0 -
Solved! Tha problem is that dblig conflicts with odb extension, but without any error! So you must disable ODBC extensons to load DBLIB. Now it's working fine. But would be even better if Cpanel could create an packet for dblib extensions, like other extensions, since it's an official extension from php source. 0 -
Hello @jmaurin, I'm glad to see you were able to solve the issue. Do you mind sharing the specific steps you took to reproduce the error, and then to solve it, so we can have a better idea of what's happening? Thank you. 0
Please sign in to leave a comment.
Comments
4 comments