Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

httpd Cannot load /opt/freeware/lib/httpd/modules/mod_authn_default.so

  • 1.  httpd Cannot load /opt/freeware/lib/httpd/modules/mod_authn_default.so

    Posted Wed October 07, 2020 10:25 AM
    Edited by christophe derouet Wed October 07, 2020 10:29 AM
    Hello,

    We are working on AIX LPAR 7.2

    We have to install YUM.
    Before installing YUM we had to remove an old httpd (httpd-2.2.17-1.ppc) version as there was a conflit with db4 package.

    Now that YUM works fine we had to re-install a new version of httpd (httpd-2.4.41-1.ppc).
    And our new version of httpd will have to work with our old httpd configuration file.

    It is not the first time we met this situation.
    So we were confident !



    But this time we have troubles ! The httpd daemon does not want to start. We have missing modules.
    We do not understand why ?

    Do we have to install another rpm package ?
    What should we check ?

    We thank you very much for your help,

    Christophe


    aicci031(root) /etc/rc.d/rc2.d # ./Shttpd start
    Starting Apache httpd...

    httpd: Syntax error on line 107 of /opt/freeware/etc/httpd/conf/httpd.conf:
    Cannot load /opt/freeware/lib/httpd/modules/mod_authn_default.so into server: \t0509-022
    Cannot load module /opt/freeware/lib/httpd/modules/mod_authn_default.so.\n\t0509-026

    System error: A file or directory in the path name does not exist.
    done.


    Line 107 of the conf file /opt/freeware/etc/httpd/conf/httpd.conf
    ##################################################################
    LoadModule authn_default_module /opt/freeware/lib/httpd/modules/mod_authn_default.so


    aicci031(root) /opt/freeware/lib/httpd/modules # ls -l | grep authn
    -rwxr-xr-x 1 root system 10240 May 22 07:06 mod_authn_anon.so
    -rwxr-xr-x 1 root system 19299 May 22 07:06 mod_authn_core.so
    -rwxr-xr-x 1 root system 18589 May 22 07:06 mod_authn_dbd.so
    -rwxr-xr-x 1 root system 12881 May 22 07:06 mod_authn_dbm.so
    -rwxr-xr-x 1 root system 12262 May 22 07:06 mod_authn_file.so
    -rwxr-xr-x 1 root system 29877 May 22 07:06 mod_authn_socache.so
    -rwxr-xr-x 1 root system 71908 May 22 07:06 mod_authnz_ldap.so
    aicci031(root) /opt/freeware/lib/httpd/modules #

    ------------------------------
    christophe derouet
    ------------------------------
    #AIXOpenSource


  • 2.  RE: httpd Cannot load /opt/freeware/lib/httpd/modules/mod_authn_default.so

    Posted Wed October 07, 2020 10:42 AM
    You can't expect a configuration file which is used for version 2.2.17 to work in version 2.4.41
    It's a major version change. Those missing modules would have been deprecated.
    You need to look into the new httpd conf file and create a suitable one for your needs.

    ------------------------------
    Ayappan P
    ------------------------------