在 F25 上玩弄了我的 FreePBX 安装后,我似乎已经破坏了它,并且无法加载 pdo_mysql:
[root@freepbx-localdomain freepbx] # /usr/bin/env php -m | grep -i pdo
PDO
pdo_sqlite
FreePBX 的./install
错误正确显示:
Checking if Asterisk is running and we can talk to it as the 'asterisk' user...Done
Preliminary checks done. Starting FreePBX Installation
Checking if this is a new install...Yes (No /etc/amportal.conf file detected)
Database Root installation checking credentials and permissions..Error!
Invalid Database Permissions. The error was: could not find driver
最后,pdo_mysql 位于 /etc/php.d 目录中:
[root@freepbx-localdomain php.d] # ls *pdo_mysql*
30-pdo_mysql.ini
我在这里苦苦挣扎,即将进行干净的 CentOS 安装(而不是在 Fedora Workstation 上运行它,这不是最好的主意)。想法?
编辑:虽然据说 php.ini 不再用于加载扩展,但我还是尝试了,添加:
extension="pdo.so"
extension="pdo_mysql.so"
现在...
[root@freepbx-localdomain freepbx] # /usr/bin/env php -m | grep -i pdo
PHP Warning: PHP Startup: Unable to 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 to 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