HowTo: Install Firebird/Interbase with PHP on Windows. A step-by-step tutorial.

This simple tutorial assumes you already have a working PHP installation. There's plenty of guides on how to set up PHP, here I'm only showing how to make it interact with Firebird.

PEAR - PHP Extension and Application Repository   PHP.net   Firebird - Database for the new millennium

Requirements

Install Firebird SQL

  • Download the zip archive: Firebird SQL 2.0.0
  • Extract the archive to C:\firebird (for instance)
  • Open a command prompt window (START, Run, "cmd")
  • Run these commands, one by one:
    C:\firebird\bin\instreg i
    C:\firebird\bin\instsvc i -s -a
    C:\firebird\bin\instsvc start

Configure PHP

  • Copy C:\firebird\bin\fbclient.dll to your C:\windows\system32 directory and rename the file to gds32.dll
  • Copy php_interbase.dll from your php\ext directory to the C:\windows\system32 directory.
  • Copy libeay32.dll and ssleay32.dll from your php directory to the C:\windows\system32 directory.
  • Edit your php.ini, un-comment the line
    extension=php_interbase.dll
    (you have to remove the semicolon from that line).
  • Restart your webserver (Apache).

Install some Firebird SQL Tools

You can manage your databases with some tools:

NB: the default admin username:password pair for Firebird is SYSDBA:masterkey.

Bookmark and Share

Leave a reply

(it will NOT be published)
No HTML tags. All comments need to be approved before they appear on the site - this is not to weed out critical comments, but just spam.

Lorenzo Alberton

Lorenzo Alberton Lorenzo PHP5 ZCE - Zend Certified Engineer works as a Consultant / Software Engineer at Ibuildings, always busy with many cool clients. He's a long-time contributor to many open source projects. Lorenzo Alberton's profile on LinkedIN

Tags

AJAX, Apache, Book Review, Charset, Cheat Sheet, Database, Firebird SQL, INFORMATION_SCHEMA, JavaScript, Linux, mod_rewrite, MySQL, Oracle, PDO, PEAR, PHP, PostgreSQL, Security, SPL, SQL Server, SQLite, Testing, Tutorial, TYPO3, Windows, Zend Framework

Buy me a book - The Art Of Project Management