Could not find driver ( PHP and Firebird )

2020-04-30 02:23发布

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:

Could not find driver ( PHP and Firebird )

1条回答
淡お忘
2楼-- · 2020-04-30 02:41

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
查看更多
登录 后发表回答