Setting up Firebird with PHP?

Asked

Viewed 408 times

0

I’m using XAMPP/LAMPP with Centos and I’m trying to configure PHP to connect to a Firebird database. At php.ini I’ve cracked the line extension="interbase.so" and copied the interbase.so to the directory /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525 but I’m not getting it to work. By looking at the logs in the archive php_error_log has a mistake of Unable to load dynamic library and I’m not finding the reasons for this problem to solve.

How to set up PHP to connect Firebird with XAMPP/LAMPP ?

Errors in php_error_log file

[22-Oct-2015 01:51:39 America/Sao_Paulo] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/interbase.so' - libfbclient.so.2: wrong ELF class: ELFCLASS64 in Unknown on line 0
[22-Oct-2015 01:51:44 America/Sao_Paulo] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/interbase.so' - libfbclient.so.2: wrong ELF class: ELFCLASS64 in Unknown on line 0
[22-Oct-2015 01:51:47 America/Sao_Paulo] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/interbase.so' - libfbclient.so.2: wrong ELF class: ELFCLASS64 in Unknown on line 0
  • Your php is 64bit? Because if it’s the library you’re trying to load seems to be 32bit (or on the contrary, I’m not sure), then you can’t use it. Download . only for the same version of php. To know if it is 64 or 32 just use <?php phpinfo(); ?>

  • @Guilhermenascimento thanks. But tired of suffering, I ended up leaving XAMPP and installing everything using the yum and now this 100%....

  • 1

    Yes, many linux distributions offer support for PHP installation via repositories, which in my view is much better, Xampp has several cool things, but for development I find it difficult to use half of them.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.