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

Notices


Reply
  Search this Thread
Old 05-24-2004, 11:04 AM   #1
z_darius
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-1.0.3.972-0.i386.rpm
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
/home/me
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 interbase.so library in the
/home/me/php-4.3.5/modules

7..- Copy the interbase.so to /usr/lib/php4
# cp modules/interbase.so /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:
extension=interbase.so
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

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