php73 - Unable to load dynamic library 'pdo_mysql'

indexs

Verified User
Joined
Jun 11, 2010
Messages
77
Hello, DA forum users!

Run in to this problem after update:

Code:
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql (/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql: cannot open shared object file: No such file or directory), /usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql.so (/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Tried to fix with:
1. reinstall php73 "./build php n" - FAIL
2. "pecl install pdo_mysql" - FAIL

Part of my options.conf:

#PHP Settings
php1_release=7.3
php1_mode=php-fpm
php2_release=5.3
php2_mode=php-fpm
php3_release=no
php3_mode=php-fpm
php4_release=no
php4_mode=php-fpm
secure_php=no
opcache=yes
htscanner=no
php_ini=no
php_timezone=******/***** <- masked
php_ini_type=production
ioncube=yes
imagick=yes
zend=yes
suhosin=no
x_mail_header=yes

#MySQL Settings
mysql=5.6
mariadb=10.2
mysql_inst=mariadb
mysql_backup=yes
mysql_backup_gzip=no
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

----

but without success, any suggestions how to cure this?

Thank you in advance!
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,146
Location
GMT +7.00
Hello,

pdo_mysql is installed by default with CustomBuild/DirectAdmin. You don't need to install it by any other means.

Code:
# php -i | grep -i ^pdo
PDO
PDO support => enabled
PDO drivers => mysql, sqlite
pdo_mysql
PDO Driver for MySQL => enabled
pdo_mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
pdo_sqlite
PDO Driver for SQLite 3.x => enabled
 

indexs

Verified User
Joined
Jun 11, 2010
Messages
77
Agree, yes, it should be, but something went wrong at my server:

Code:
# php -i | grep -i ^pdo
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql (/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql: cannot open shared object file: No such file or directory), /usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql.so (/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PDO
PDO support => enabled
PDO drivers => mysql, sqlite
pdo_mysql
PDO Driver for MySQL => enabled
pdo_mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
pdo_sqlite
PDO Driver for SQLite 3.x => enabled
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,774
Location
LT, EU
Agree, yes, it should be, but something went wrong at my server:

Code:
# php -i | grep -i ^pdo
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql (/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql: cannot open shared object file: No such file or directory), /usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql.so (/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/pdo_mysql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PDO
PDO support => enabled
PDO drivers => mysql, sqlite
pdo_mysql
PDO Driver for MySQL => enabled
pdo_mysql.default_socket => /var/lib/mysql/mysql.sock => /var/lib/mysql/mysql.sock
pdo_sqlite
PDO Driver for SQLite 3.x => enabled
You simply added extension=pdo_mysql.so to your php.ini :) Why - I don't know.
 

indexs

Verified User
Joined
Jun 11, 2010
Messages
77
Well that is 100% strange, because I`d not remember doing that.... :oops:

Anyway, I thought it should that way, some kind special config needed by DA. So i have commented it out and now it looks to be solved.
Thank you, for the help!
 
Top