AIX Open Source

Expand all | Collapse all

Trying to add PHP support to an existing IBM HTTP Server

  • 1.  Trying to add PHP support to an existing IBM HTTP Server

    Posted Thu August 26, 2021 03:55 PM

    I installed the AIX_Toolbox version of PHP and added (among other things) the following to my /usr/IBM/HTTPServer/conf/httpd.conf file:

    LoadModule php7_module /opt/freeware/lib64/httpd/modules/libphp7.so

    However, when I try to run /usr/IBM/HTTPServer/bin/apachectl start I get:

    httpd: Syntax error on line 166 of /usr/IBM/HTTPServer/conf/httpd.conf:
    Cannot load /opt/freeware/lib64/httpd/modules/libphp7.so into server:
    rtld: 0712-001 Symbol ap_log_error_ was referenced
    from module /opt/freeware/lib64/httpd/modules/libphp7.so(), but a runtime definition
    of the symbol was not found.
    rtld: 0712-001 Symbol ap_log_rerror_ was referenced
    from module /opt/freeware/lib64/httpd/modules/libphp7.so(), but a runtime definition
    of the symbol was not found.
    rtld: 0712-001 Symbol ap_unixd_config was referenced
    from module /opt/freeware/lib64/httpd/modules/libphp7.so(), but a runtime definition
    of the symbol was not found.

    How does one find out which package provides these symbols?  I thought it might be "yum resolvedep" but that's not it:

    # yum resolvedep ap_log_error_
    No Package Found for ap_log_error_
    # yum resolvedep ap_log_rerror_
    No Package Found for ap_log_rerror_
    # yum resolvedep ap_unixd_config
    No Package Found for ap_unixd_config

    ​​​

    ------------------------------
    Erich Wolz
    ------------------------------


  • 2.  RE: Trying to add PHP support to an existing IBM HTTP Server

    Posted Fri August 27, 2021 02:54 AM
    Hi Erich,

    AIX Toolbox php works fine with AIX Toolbox httpd.
    IBM http server and AIX Toolbox httpd are different.
    You need to use the php built with IBM httpd server or use the AIX Toolbox httpd and AIX Toolbox php.
    There can be incompatibility if we try to mix packages available from different sources.

    # yum deplist php
    Finding dependencies:
    package: php.ppc 7.4.13-2
    dependency: /bin/sh
    Unsatisfied dependency
    dependency: httpd >= 2.4.38
    provider: httpd.ppc 2.4.46-2
    dependency: libc.a(shr.o)
    Unsatisfied dependency
    dependency: libc.a(shr_64.o)
    Unsatisfied dependency
    dependency: libcrypto.a(libcrypto.so.1.0.2)
    Unsatisfied dependency
    dependency: libgcc >= 8.3.0
    provider: libgcc.ppc 1:8-1
    dependency: libgcc_s.a(shr.o)
    provider: libgcc8.ppc 8.3.0-4
    provider: libgcc7.ppc 7.2.0-2
    provider: libgcc6.ppc 6.3.0-2
    provider: libgcc.ppc 8.3.0-2
    dependency: libiconv >= 1.14-1
    provider: libiconv.ppc 1.16-1
    dependency: libiconv.a(libiconv.so.2)
    provider: libiconv.ppc 1.16-1
    dependency: liblber.a(liblber-2.4.so.2)
    provider: openldap.ppc 2.4.58-1
    dependency: libldap.a(libldap-2.4.so.2)
    provider: openldap.ppc 2.4.58-1
    dependency: libpthread.a(shr_comm.o)
    Unsatisfied dependency
    dependency: libpthread.a(shr_xpg5.o)
    Unsatisfied dependency
    dependency: libpthread.a(shr_xpg5_64.o)
    Unsatisfied dependency
    dependency: librtl.a(shr.o)
    Unsatisfied dependency
    dependency: libsqlite3.so
    provider: sqlite.ppc 3.35.5-1
    provider: nss.ppc 3.13.2-1
    dependency: libssl.a(libssl.so.1.0.2)
    Unsatisfied dependency
    dependency: libxml2 >= 2.9.5-1
    provider: libxml2.ppc 2.9.10-1
    dependency: libxml2.a(libxml2.so.2)
    provider: libxml2-devel.ppc 2.7.8-1
    provider: libxml2.ppc 2.9.10-1
    dependency: openldap >= 2.4.45-1
    provider: openldap.ppc 2.4.58-1
    dependency: sqlite >= 3.32.3
    provider: sqlite.ppc 3.35.5-1

    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: Trying to add PHP support to an existing IBM HTTP Server

    Posted Fri August 27, 2021 01:47 PM

    Thanks. Looks like I will have to migrate to the AIX Toolbox httpd, as there is no PHP provided with IHS (that I can find, anyway)

    Kind regards / mit freundlichen Grüßen,
    Erich W. Wolz (wolz @ us.ibm.com), Senior IT Specialist
    IBM Business Consulting Services -- Federal
    12301 Kurland Dr., Houston, TX  77034-4812
    Phone: 713-797-4645



    "SANGAMESH MALLAYYA via IBM Community" ---08/27/2021 01:56:04 AM---Hi Erich, AIX Toolbox php works fine with AIX Toolbox httpd. IBM http server and AIX Toolbox httpd a