Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 05-24-2004, 11:04 AM   #1
LQ Newbie
Registered: Nov 2003
Location: Canada
Distribution: Mandrake, e-smith
Posts: 27

Rep: Reputation: 15
Firebird+PHP+Fedora C2

For those who were looking for answers but couldn fiind them:

1- .Install Fedora selecting Web Server in the list of packages.
This installs Php and Apache.
2..- Install Firebird. As root
# rpm -Uvh FirebirdSS-
Default install path is /opt/interbase
The server of firebird is running now.
3..- Download the source code of PHP (php-4.3.5.tar.bz2)
4..- Extract the source code to any path. For example
5..- Swicth to php-4.3.5
# cd /home/me/php-4.3.5
6..- Configure PHP for interbase/firebird support
# ./configure --with-interbase=shared,/opt/interbase
# make

Theses generate the library in the

7..- Copy the to /usr/lib/php4
# cp modules/ /usr/lib/php4

8..- Go to /etc/php.d and create the file interbase.ini
# cd /etc/php.d
# touch interbase.ini

9..- Edit the interbase.ini file and add this line:
10.[/B].- Start or Restart (if it running) Apache Server
# service httpd start
11..- Create the following script:
$conn = ibase_connect("localhost:/opt/interbase/examples/employee.gdb","sysdba","masterkey");
$sql = "select * from customer";
$res = ibase_query($sql);
while ($row = ibase_fetch_row($res)) {
echo $row[0].' '.$row[1].'<br />';
12..- Save the script in /var/www/html as fbtest.php
13..- Navigate to http://yourwebserver/fbtest.php in you browser
14.. You will see result of the query.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firebird+PHP+Mandrake 10 z_darius Mandriva 0 05-24-2004 11:11 AM
Using firebird with Fedora pahl Fedora 9 01-14-2004 06:11 AM
Firebird chrome misaligned in Gnome /Fedora qwerty2003_a Linux - Software 4 12-29-2003 12:06 PM
Fedora Plugins for Mozilla, and Firebird MrJoshua Fedora 1 11-29-2003 03:03 PM
Firebird (or Interbase) and PHP? neillans Linux - General 0 03-07-2003 01:03 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration