AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only

Startup of apache with php and oci8 interface failed

  • 1.  Startup of apache with php and oci8 interface failed

    Posted Mon June 15, 2009 10:00 AM

    Originally posted by: SystemAdmin


    Hi all,
    need help, I'm not an expert with AIX ...
    I downloaded the 10.2 oracle instant client and installed to /web/instantclient_10_2.
    I downloaded php v5.2.6 and apache 2.2.11.
    apache then was compiled with "./configure / make / make install"
    php was compiled with :
    ./configure --prefix=/web/php --with-apxs2=/web/apache2/bin/apxs --with-config-file-path=/web/apache2/conf
    --with-oci8=instantclient,/web/instantclient_10_2 --enable-sigchild
    --enable-so

    I changed "oratypes.h" as described in www.softpanorama.org since I got error : ...php_oci8_int.h:354: error: parse error before 'oraub8' while
    compiling.

    Finally I did a "make" which then was successful!

    Later I copied the necessary php files to apache module library:

    cp .libs/libphp5.so /web/apache2/modules/

    cp php.ini-recommended /web/apache2/conf/php.ini

    Starting apache :
    /web/apache2/bin/apachectl start

    gives the following error message:

    httpd: Syntax error on line 414 of /web/apache2/conf/httpd.conf: Cannot load /web/apache2/modules/libphp5.so into
    server: rtld: 0712-001 Symbol OCIEnvInit was referenced from module
    /web/apache2/modules/libphp5.so(), but a runtime definition of the symbol was
    not found.
    rtld: 0712-001 Symbol OCIHandleAlloc was referenced from module /web/apache2/modules/libphp5.so(), but a runtime definition of the symbol was
    not found.
    ... similar messages following ...

    I have no idea, what went wrong, any kind of support is highly appreciated ...
    Thanks!

    my system: uname -a
    AIX ktuxcip03 3 5 00C78B0F4C00

    Kind regards,
    Ralf
    #AIX-Forum