Firebird with Elastix

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

  1. ccccp

    Joined:
    Jan 18, 2011
    Messages:
    29
    Likes Received:
    0
    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 http://download.fedora.redhat.com/pub/e ... 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
    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

    php-5.1.6-23.2.el5_3.src.rpm

    so you need to get the source for the rpm
    i found it on this server (with google)

    http://mirror.centos.org/centos/5/updates/SRPMS/
    wget http://mirror.centos.org/centos/5/updat ... _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)

    cd
    /usr/src/redhat/SOURCES
    tar -zxvf php-5.1.6.tar.gz
    cd php-5.1.6/ext/interbase
    yum install gcc php5-devel
    phpize
    ./configure --with-interbase=shared,/usr/lib/firebird/
    make
    make install
    now you need to enable the extension add this line
    extension = interbase.so
    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 192.168.150.1 -j ACCEPT

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

    nmap scan 192.168.150.136

    isql-fb
    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


    goodluck
     

Share This Page