UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > Tutorials / How to?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-09-2008, 00:11
AlexP's Avatar
System Administrator.
 
Join Date: Apr 2007
Posts: 76
Default Install & compile Firebird InterBase database server with PHP on Linux Server.

Firebird originally started its life as the Borland InterBase database. It is a relational database management system . Firebird offers many ANSI SQL:2003 standard features like excellent concurrency, high performance, and powerful language support for stored procedures and triggers.

In order to install the firebird database on Linux server you will need to perform the following steps:
1)Download the firebird module to the server
2)Manually build and install the firebird
Quote:
tar -jxf Firebird-2.0.3.12981-1.tar.bz2
mv Firebird-2.0.3.12981-1 firebird
cd firebird
./autogen.sh
make
make install
Firebird classic 2.0.3.12981-1.i686 Installation

Press Enter to start installation or ^C to abort
Please enter new password for SYSDBA user: (Enter here SYSDBA user password and press Enter key)
firebird database Installed successfully

3. Add /usr/local/firebird/bin/ to your path. You can either change /etc/profile or do
Quote:
export PATH=$PATH: /usr/local/firebird/bin/
or
change the profiles in your users home directories

4. Check that all went well:

Quote:
Read /opt/interbase/SYSDBA.password to get your SYSDBA password.

gsec -display
should display the list of known users (SYSDBA only after a fresh install)
like
Quote:
[root@server ~]# gsec -display
user name uid gid full name
------------------------------------------------------------------------------------------
SYSDBA 0 0 Sql Server Administrator
[root@server ~]#

[root@server]# isql /usr/local/firebird/examples/empbuild/employee.fdb
Database: /usr/local/firebird/examples/empbuild/employee.fdb
SQL> SHOW TABLES;
COUNTRY CUSTOMER
DEPARTMENT EMPLOYEE
EMPLOYEE_PROJECT JOB
PROJECT PROJ_DEPT_BUDGET
SALARY_HISTORY SALES
should display all tables from this database

SQL> quit;
[root@server]#
Once firebird database successfully installed you will have to compile firebird module with PHP and Apache , in order to work it with PHP.

Steps to compile firebird module with php On Linux Cpanel server

1)The firebird module doesn’t exit in standard cpanel easyapache scripts, You will have to put it in Custom FLAG

Quote:
• All PHP 4.x versions - edit /var/cpanel/easy/apache/rawopts/all_php4 file and put following code
--with-interbase=/opt/firebird/
• All PHP 5.x versions - edit /var/cpanel/easy/apache/rawopts/all_php5 file and put the following code
--with-interbase=/opt/firebird/
2) And run /scripts/easyapache script
When installing is finished, open the php.ini configuration file (located in /usr/local/lib/), and check if these lines exist (uncomment/modify them if necessary):
Quote:
magic_quotes_sybase = On ; Use Sybase-style magic quotes (escape ' with '' instead of ')
extension=php_interbase.so
3)You can check php module using php –m command
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
date
dom
exif
filter
ftp
gd
gettext
hash
iconv
imap
interbase
ionCube Loader
json
libxml
mbstring
mcrypt
mhash
mime_magic
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
posix
pspell
Reflection
session
SimpleXML
soap
sockets
SPL
SQLite
standard
suhosin
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]
the ionCube PHP Loader

OR create php info file under the default apache document root with following code and access it in browser
<?
phpinfo();
?>

you will see following output

Quote:
interbase
Firebird/InterBase Support static
Compile-time Client Library Version Firebird API version 20
Run-time Client Library Version LI-V6.3.3.12981 Firebird 2.0

Directive Local Value Master Value
ibase.allow_persistent On On
ibase.dateformat %Y-%m-%d %Y-%m-%d
ibase.default_charset no value no value
ibase.default_db no value no value
ibase.default_password no value no value
ibase.default_user no value no value
ibase.max_links Unlimited Unlimited
ibase.max_persistent Unlimited Unlimited
ibase.timeformat %H:%M:%S %H:%M:%S
ibase.timestampformat %Y-%m-%d %H:%M:%S %Y-%m-%d %H:%M:%S
__________________
Thanks and Regards,
Alex P
System Administrator.
Dedicated Hosting || Semi Dedicated Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
administrator, apache, compile, database, extension, firebird, install, interbase, linux cpanel server, module, php, php –m, phpinfo(), procedures, server, triggers



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 18:11.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service