• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question How to install PDO_DbLib for PHP 5.6

jacubb

New Pleskian
Hello,

I have Plesk Onyx 17.8 running on CentOS 7.5 and I would like to install PDO_DbLib extension for PHP 5.6. I have tried more tutorials, but they didn't work for me. Anyone can help me?

Thank you.
 
Thanks for a fast reply!

However, no luck.

yum install plesk-php56-pdo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package plesk-php56-pdo-5.6.36-centos7.18042712.x86_64 already installed and latest version
Nothing to do
 
If it is already installed, you should have already loaded pdo modules. Check it with:

# /opt/plesk/php/5.6/bin/php -m | grep pdo
pdo_mysql
pdo_pgsql
pdo_sqlite
 
/opt/plesk/php/5.6/bin/php -m | grep pdo
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/pdo_dblib.so' - /opt/plesk/php/5.6/lib64/php/modules/pdo_dblib.so: cannot open shared object file: No such file or directory in Unknown on line 0
pdo_mysql
pdo_pgsql
pdo_sqlite
 
Looks like that you have defined nonexistent pdo_dblib.so module file in the one of ini file. Check it and find this ini file with:

# grep -R pdo_dblib.so /opt/plesk/php/5.6/etc/*

Then remove this file or comment the corresponding line in this file for fixing this error.
 
It returned this:

grep -R pdo_dblib.so /opt/plesk/php/5.6/etc/*
/opt/plesk/php/5.6/etc/php.d/pdo_dblib.ini:extension=pdo_dblib.so
 
/opt/plesk/php/5.6/etc/php.d/pdo_dblib.ini is your custom php config. Plesk doesn't ship this config. So, you can just remove it and use pdo modules shipped by Plesk package
plesk-php56-pdo
 
Can you please write me how can I do it? I am not familiar with CentOS commands :/ I just need to install dblib driver and get it work with freetds version 8.0.
 
1. Delete file /opt/plesk/php/5.6/etc/php.d/pdo_dblib.ini

2. Run:

# plesk bin php_handler --reread

3. Check that you have no errors with

# /opt/plesk/php/5.6/bin/php -m | grep pdo

4. Try to run your freetds version 8.0 (sorry, I'm not familiar with it)
 
Back
Top