AIX

AIX

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


#Power
 View Only
Expand all | Collapse all

Compile HTTPD error in AIX 6.1

  • 1.  Compile HTTPD error in AIX 6.1

    Posted Tue January 31, 2012 10:06 PM

    Originally posted by: MarkAntonio


    Hello experts,

    We are currently upgrading our apache 1.3 to 2.0.64. We have done all necessary steps. However, the apachectl command does not start because of the error below:

    $ apachectl start
    Syntax error on line 207 of /home/devcs/conf/httpd.conf:
    Cannot load /home/devcs/libexec/mod_sapcs.o into server: Could not load module /home/devcs/libexec/mod_sapcs.o.\n\tThe module has an invalid magic number.

    Upon checking httpd, it is on correct version. However, seems the architecture is in 32 bit

    $ httpd -V
    Server version: Apache/2.0.64
    Server built: Jan 31 2012 16:51:58
    Server's Module Magic Number: 20020903:14
    Server loaded: APR 0.9.19, APR-UTIL 0.9.19
    Compiled using: APR 0.9.19, APR-UTIL 0.9.19
    Architecture: 32-bit
    Server compiled with....
    -D APACHE_MPM_DIR="server/mpm/prefork"
    -D APR_HAS_SENDFILE
    -D APR_HAS_MMAP
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
    -D APR_USE_SYSVSEM_SERIALIZE
    -D APR_USE_PTHREAD_SERIALIZE
    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
    -D APR_HAS_OTHER_CHILD
    -D AP_HAVE_RELIABLE_PIPED_LOGS
    -D HTTPD_ROOT="/home/devcs"
    -D SUEXEC_BIN="/home/devcs/bin/suexec"
    -D DEFAULT_PIDLOG="logs/httpd.pid"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_LOCKFILE="logs/accept.lock"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="conf/mime.types"
    -D SERVER_CONFIG_FILE="conf/httpd.conf"

    We compiled this using C compiler. We also execute the command below for the compiler and loader flags but still, the 32-bit architecture applies.

    ./comfigure CFLAGS="-q64", LDFLAGS="-q64", EXTRA_LDFLAGS_SHLIB="-b64"

    Is there anything that we missed?

    Thanks.

    Mark
    #AIX-Forum


  • 2.  Re: Compile HTTPD error in AIX 6.1

    Posted Wed February 01, 2012 02:47 PM

    Originally posted by: V6G3_Romeo_Ninov


    1. apachectl do not start, apachectl start httpd daemon
    2. have you try to remove this module from configuration and try again
    3. IMHO modules for 1.3 and for 2.x differ and cant be used for other version
    4. what are results of:
    file /home/devcs/libexec/mod_sapcs.o
    and
    ldd /home/devcs/libexec/mod_sapcs.o
    #AIX-Forum