Firebird with Elastix

Discussion in 'General' started by ccccp, Mar 3, 2011.

  1. ccccp

    Jan 18, 2011
    Likes Received:
    taking from here
    cat /etc/redhat-release to find your centos version
    CentOS release 5.3 (Final)
    Here is the guide for Centos5.3 you must enable the epel-testing for centos

    rpm -Uvh ... noarch.rpm
    yum update
    yum install firebird-superserver firebird-devel --enablerepo epel-testing
    yum install php-interbase --enablerepo epel-testing
    then restart apache

    /etc/init.d/httpd restart
    check if the module is loaded with php -m
    php -m | grep interbase
    or with phpinfo() in a empty page

    If you want to compile php-interbase from source
    you need to find the php package installed you need to search with

    rpm -qa | grep php

    and you need the exact source for the package

    rpm -q --queryformat '%{sourcerpm}' php-5.1.6


    so you need to get the source for the rpm
    i found it on this server (with google)
    wget ... _3.src.rpm
    mkdir -p /usr/src/redhat/SOURCES
    rpm -ivh php-5.1.6-23.2.el5_3.src.rpm

    that solves the step 2 from the faq (getting the exact php version used in centos)

    tar -zxvf php-5.1.6.tar.gz
    cd php-5.1.6/ext/interbase
    yum install gcc php5-devel
    ./configure --with-interbase=shared,/usr/lib/firebird/
    make install
    now you need to enable the extension add this line
    extension =
    in file /etc/php.d/firebird.ini

    Accept tcp packets on destination ports 3050
    iptables -A INPUT -p tcp --dport 3050 -j ACCEPT

    iptables -A INPUT -s -j ACCEPT

    svnserve -dr /var/svn --listen-port 3050

    nmap scan

    connect "/var/lib/firebird/2.1/data/SIMPLYSUPER.FDB " user 'SYSDBA' password 'masterkey'

    cd /var/lib/firebird/data/
    chown firebird:firebird SIMPLYSUPER.FDB

    chkconfig --firebird on
    chkconfig --firebird on
    chkconfig --level 345 firebird on

    password change

    gsec -user SYSDBA -password masterkey -modify sysdba -pw newpassword


Share This Page