PHPDB 2 Install

Goto Main Page
Goto PHP page
Goto Documents

  • Installation (test binary from php page):
    
    ibm i:
    endTCPSVR SERVER(*HTTP) HTTPSVR(ZENDSVR6)
    call qp2term
    > cd /usr/local/zendsvr6/lib/php_extensions
    -- or --
    > cd /usr/local/zendphp7/lib/php_extensions
    > cp ibm_db2.so ibm_db2.so-orig
    
    pc: 
    > unzip ibm_db2-1.9.7-zs(n)-php(n).zip
    > ftp myibmi
    > bin
    > cd /usr/local/zendsvr6/lib/php_extensions
    -- or --
    > cd /usr/local/zendphp7/lib/php_extensions
    > put ibm_db2.so
    
    ibm i:
    strTCPSVR SERVER(*HTTP) HTTPSVR(ZENDSVR6)
    -- or --
    strTCPSVR SERVER(*HTTP) HTTPSVR(ZENDPHP7)
    
    If you install wrong ibm_db2 version to php, ibm_db2 not work, check php.log:
    bash-4.3$ tail /usr/local/zendsvr6/var/log/php.log 
    start
    see message ... not load ibm_db2.so
    
    ====
    additional module required
    ====
    Many of the ibm_db2.so compiles above switched to gcc compiles,
    therefore you will need to add a runtime module to PHP to load ibm_d2.so
    
    pc:
    > unzip ibm_db2-libgcc.zip
    > ftp myibmi
    > bin
    > cd /usr/local/zendsvr6/lib
    -- or --
    > cd /usr/local/zendphp7/lib
    > put libgcc_s.a