mysql - PHP won't load pdo_mysql extension on Fedora 25 -


after little toying around freepbx install on f25, seem have broken it, , can't pdo_mysql load:

[root@freepbx-localdomain freepbx] # /usr/bin/env php -m | grep -i pdo pdo pdo_sqlite 

freepbx's ./install errors out appropriately:

checking if asterisk running , can talk 'asterisk' user...done preliminary checks done. starting freepbx installation checking if new install...yes (no /etc/amportal.conf file detected) database root installation checking credentials , permissions..error! invalid database permissions. error was: not find driver 

lastly, pdo_mysql in /etc/php.d directory:

[root@freepbx-localdomain php.d] # ls *pdo_mysql* 30-pdo_mysql.ini 

i'm struggling here, , clean centos install (and not run on fedora workstation, wasn't best idea). ideas?

edit: while supposedly php.ini no longer used load extensions, did try anyways, adding:

extension="pdo.so" extension="pdo_mysql.so" 

and now...

[root@freepbx-localdomain freepbx] # /usr/bin/env php -m | grep -i pdo php warning:  php startup: unable load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so: undefined symbol: zend_new_interned_string in unknown on line 0 php warning:  php startup: unable load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so: undefined symbol: mysqlnd_allocator in unknown on line 0 pdo pdo_sqlite 

i have been fooling around issue while , think solved doing following:

installed php mysql using command in terminal:

dnf install  php-mysqlnd 

then restarted apache following:

service httpd restart 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo