1

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 )

SMO
  • 33
  • 3
  • 4
    If you are using Ubuntu, then you cannot use `extension=php_pdo_firebird.dll`. DLLs are for Windows, not for Linux. Try with `extension=php_pdo_firebird.so`, and verify that extension actually exists. You may also want to consider posting your question to the firebird-php mailinglist. – Mark Rotteveel Nov 26 '19 at 13:45
  • Thank you Mark for your response, unfortunately I don't have extension=php_pdo_firebird.so in php.ini – SMO Nov 26 '19 at 13:54
  • Then add it. If you're really on Ubuntu, then `extension=php_pdo_firebird.dll` cannot work (and should never have been present in the first place, which might indicate other problems with your setup). – Mark Rotteveel Nov 26 '19 at 13:56
  • I agree with you, but when I installed xampp from the official site I don't find extension=php_pdo_firebird.so in the first place just extensions (.dll). – SMO Nov 26 '19 at 14:38
  • unforunately I tried all the solutions to install pdo_firebird but the problem still the same. – SMO Nov 27 '19 at 14:14
  • @SMO Please consider accepting my answer if it was helpful. – Peyman Mohamadpour Dec 06 '21 at 19:45

2 Answers2

4

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
Peyman Mohamadpour
  • 17,954
  • 24
  • 89
  • 100
  • Thank you very much for your reply, I made all the instructions step by step and I installed the extension php-pdo-firebird again but it shows that I can't install this extension. – SMO Nov 26 '19 at 14:34
  • That is another question and you would better ask it on [AskUbuntu](https://askubuntu.com/) – Peyman Mohamadpour Nov 27 '19 at 12:02
2

Try this

php -v
apt-get install -y php<your php version>-interbase
β.εηοιτ.βε
  • 33,893
  • 13
  • 69
  • 83