Could not find driver ( PHP and Firebird )

早过忘川 提交于 2019-12-02 12:29:42

问题


I have a web-based PHP script named portail, so I want to make it functional on Ubuntu.

I installed Xampp 5.6 , Firebird 2.5 under Ubuntu, then I uncommented the library:

"extension=php_pdo_firebird.dll"

and I made the specific configuration for php5 and firebird
(https://mapopa.blogspot.com/2009/04/php5-and-firebird-pdo-on-ubuntu-hardy.html),
but he always shows me the following message

could not find driver localhost/portail

Screenshot:


回答1:


You should install the required php extension if not already installed by default installation process. Php extensions are binaries which help php do extra things which can not without them. For example there is another well-known php extension called X-Debug which helps php developers debug their code.

First of all check that you have this php_pdo_firebird extension installed (or not), using Ubuntu CLI (Command-Line Interface):

  1. installed system-wide by default:

    php -m | grep -i pdo-firebird
    
  2. installed using your package manager:

    dpkg --get-selections | grep -i php-pdo-firebird
    

If none of the above returned a result, then you do not have that extension installed. you should install it using your preferred package manager:

sudo apt-get update -y
sudo apt-get install -y php-pdo-firebird


来源:https://stackoverflow.com/questions/59051575/could-not-find-driver-php-and-firebird

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!