Firebird PDO on Ubuntu

Created by: Lester Caine, Last modification: 20 Dec 2009 (07:57 GMT)

Firebird Install guide for php on Ubuntu and the issues
Created by: Popa Marius Adrian,Last modification on 02 Nov 2009 [13:17 UTC]

First method: is using the old source code from pear channel (pear install pdo_firebird doesn't work ) sudo apt-get install php5-dev firebird2.1-dev php-pear sudo pecl install pdo wget http://pecl.php.net/get/PDO_FIREBIRD-0.2.tgz tar -zxvf PDO_FIREBIRD-0.2.tgz cd PDO_FIREBIRD-0.2 phpize ./configure sudo ln -s /usr/lib/libfbclient.so.2.1.2 /usr/lib/libgds.so make sudo make install check to have in php.ini to have the next lines also with phpinfo() function # configuration for php PDO module extension=pdo.so extension=pdo_firebird.so ~ ~ ~ Second method: We use the official php5 source from ubuntu and build only the pdo firebird extension and install it sudo apt-get install php5-dev firebird2.1-dev php-pear devscripts debget sudo pecl install pdo you need to build the pdo extension from php from ubuntu source code here is how to get the source for php package in jaunty apt-get source php5 cd php5-5.2.6.dfsg.1 cd ext cd pdo_firebird phpize ./configure sudo ln -s /usr/lib/libfbclient.so.2.1.2 /usr/lib/libgds.so make sudo make install check to have in php.ini to have the next lines also with phpinfo() function # configuration for php PDO module extension=pdo.so extension=pdo_firebird.so php -i | grep PDO PDO PDO support => enabled PDO drivers => firebird PDO_Firebird PDO Driver for Firebird/InterBase => enabled