Subject Re: [firebird-php] Stupid question
Author Philippe Makowski
Le 04/12/2003 11:55, Pavol STÁREK PSŽ a écrit :

> Hi,
>
> i have stupid question:
>
> HOW CAN I RUN FIREBIRD 1.5 WITH MANDRAKE 9.1 default PHP?
>
> Is anywhere step-by-step how to???
>
Firebird 1.5 PHP 4.3.1 Mdk 9.1

Install the rpm (apache an php)

Get the PHP source from http://www.php.net/downloads.php

untar it:
tar xvfz php-*.tar.gz

cd to the untared base dir:
cd php-4*

according to <http://bugs.php.net/bug.php?id=23928>
add #define ISC_FAR in php_interbase.h
export LIBS="-lstdc++ -lcrypt"


compile it with ib support:
./configure --with-interbase=shared,/usr/local/firebird

make
(or make -i if you get errors before compiling interbase.so)
It's ok there to ignore errors because we only want interbase.so

cp the module to /usr/lib/php/extensions

cp modules/interbase.so /usr/lib/php/extensions

Add the line :
extension=interbase.so

to the /etc/php.ini file in the Dynamic Extensions section

Now it should work.






--
Philippe Makowski

Firebird serveur SQL open-source en français http://firebird-fr.eu.org

Ma clé PGP : http://makowski.eu.org/pgpkey.html