How it's possible to install firebird2.5 driver in debian 9, PHP 7.4

1,000 views
Skip to first unread message

KuK Support und Technik

unread,
Aug 13, 2020, 11:40:30 AM8/13/20
to Firebird-PHP

Dear community of Firebird-PHP.
I'm searching long time to know how it's possible to install an simply firebird database driver on Debian 9, in which I'm using Plesx with PHP 7.3 or PHP 7.4

My own steps I made was as follow:
1. sudo apt-get update
2. sudo apt-get install php-pdo-firebird
-> the installed package is under /usr/lib/x86_64-linux-gnu/firebird in which is a
     subfolder "lib". In the lib folder are files  "libfbclient.so", "libfbclient.so.2" and "libib_until.so"

in the folder /usr/lib/x86_64-linux-gnu  are files like
libfbclient.so, libfbclient.so.2, libfbclient.so.3 and libfbclient.so.3.0.1 

3. In the php.ini I could activate the extension=pdo_firebird
4. And finally I restarted my web service apache2 by service apache2 restart

5. Now when I try to use the PDO class on php side
    ->  $db = new \PDO('firebird:dbname=175.13.55.4:D:\xxxxx\yyyyy\ZZZ.FDB', ' secret ', 'secret');
I got an php issue that:
"PDOException
could not find driver"

Hope any can help me what I did wrong, perhaps what I have to do else

Best regards

David Izaguirre 

martin.koeditz

unread,
Aug 17, 2020, 7:05:15 AM8/17/20
to Firebird-PHP
Hi David,

where did you install the PHP extension? Seems PHP can't find the extension, e.g. php_pdo_firebird.so.
You also need libfclient.so. As I can see you've done that already. So check your extension first. If the pathes are correct check the installed modules via phpinfo().

Regards
Martin

KuK Support und Technik

unread,
Aug 24, 2020, 11:07:14 AM8/24/20
to firebi...@googlegroups.com
Hello martin koeditz,

after I run the command: sudo apt-get install php-pdo-firebird  I could found that the firebird package is under /usr/lib//x86_64-linux-gnu/firebird/3.0
In this folder I have an file "firebird.msg" and a subfolder "lib" with tree linked files "libfbclient.so", " libfbclient.so.2" and " libib_util.so"

But under the /usr/lib//x86_64-linux-gnu/ I could found files like  "libfbclient.so.3.0.1",  "libfbclient.so.3"

Under the folder /opt/plesk/php are all my php versions with the php.ini -> because I'm using plesk on debian 9.4
And under /etc/php/php/7.4 should exist my global OS version of php

Do you know what I have do to?



--
You received this message because you are subscribed to a topic in the Google Groups "Firebird-PHP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebird-php/V-WJcVtrpnQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebird-php...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-php/86ace3b3-9b3c-45a8-905b-46b2d5136c7cn%40googlegroups.com.

KuK Support und Technik

unread,
Aug 24, 2020, 11:20:59 AM8/24/20
to firebi...@googlegroups.com
Hello again, I found the following direccion... hope it can help :)

Pathes after installing: apt-get install php<version of php>-interbase

/usr/bin/fb_config
/usr/include/ib_util.h
/usr/include/ibase.h
/usr/include/iberror.h
/usr/include/perf.h
/usr/include/firebird/Firebird.pas
/usr/include/firebird/FirebirdInterface.idl
/usr/include/firebird/IdlFbInterfaces.h
/usr/include/firebird/Interface.h
/usr/include/firebird/Message.h
/usr/include/firebird/UdrCppEngine.h
/usr/lib/x86_64-linux-gnu/libfbclient.so
/usr/lib/x86_64-linux-gnu/firebird/3.0/include
/usr/lib/x86_64-linux-gnu/firebird/3.0/lib/libfbclient.so
/usr/share/doc/firebird-dev
/usr/share/man/man1/fb_config.1.gz
Reply all
Reply to author
Forward
0 new messages