FreePBX:无效的数据库权限。错误是:找不到驱动程序

时间:2016-01-20 04:16:51

标签: asterisk freepbx

我们正在按照此文档在ubuntu 14上安装“asterisk”和“FreePbx”。

http://wiki.freepbx.org/display/FOP/Installing+FreePBX+13+on+Ubuntu+Server+14.04.2+LTS

除了一件事,当我们执行最后一个命令

时,一切正常
 ./start_asterisk start
 ./install -n

我们收到此错误

root@dtm-asterix:/usr/src/freepbx# ./install -n
Assuming you are Database Root
Checking if SELinux is enabled...Its not (good)!
Reading /etc/asterisk/asterisk.conf...Done
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

这是我的odbc.ini

[MySQL-asteriskcdrdb]
Description=MySQL connection to 'asteriskcdrdb' database
driver=MySQL
server=localhost
database=asteriskcdrdb
Port=3306
Socket=/var/run/mysqld/mysqld.sock
option=3

我们检查过,我们的系统安装了php pdo。

1 个答案:

答案 0 :(得分:3)

apt-get install php-mysql

似乎为我解决了这个问题