so modules of apache 2.x for mac

Posted on 2009-02-22
Last Modified: 2012-05-06

Just a few questions on apache 2.x on Mac 10.4:

1) I installed apache 2..2.x at /usr/local/apache2. The modules folder at /usr/local/apache2/modules has files with  a  ".a" or ".la" extension.

i) What are these files?
ii) Why are there no .so modules in this location?

2) I have an error when I try and start apache2:
httpd: Syntax error on line 58 of /apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/ into server: cannot create object file image or add library

I have a file mod_authn_file.a and a file but no .so module extensions. What is the problem and how can repair this? (fyi: I've created a symlink from /apache2/conf/httpd.conf to /usr/local/apache2/conf/httpd.conf)

3) When I execute "httpd -V" I get the
 -D HTTPD_ROOT="/apache2"

How do I change the root to "/usr/local/apache2"?

Question by:Victor Kimura

    Author Comment

    by:Victor Kimura
    I forgot to mention when I type in httpd -V: I receive

    Server version: Apache/2.2.11 (Unix)
    Server built:   Feb  8 2009 09:09:57
    Server's Module Magic Number: 20051115:21
    Server loaded:  APR 1.3.3, APR-Util 1.3.4
    Compiled using: APR 1.3.3, APR-Util 1.3.4
    Architecture:   32-bit
    Server MPM:     Prefork
      threaded:     no
        forked:     yes (variable process count)
    Server compiled with....
     -D APACHE_MPM_DIR="server/mpm/prefork"
     -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
     -D HTTPD_ROOT="/apache2"
     -D SUEXEC_BIN="/apache2/bin/suexec"
     -D DEFAULT_PIDLOG="logs/"
     -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"

    How do change the HTTPD ROOT to "/usr/local/apache2":
    LVL 51

    Accepted Solution

    i) static libraries
    ii) most likely cause no shared version was compiled

    2) you only can load dynamic shared object, which are missing (see i) and ii))

    > How do change the HTTPD ROOT
    you need to set it at compile time, most likely with the configure script

    Author Comment

    by:Victor Kimura
    Hi ahoffmann,

    I have another affiliated posting here:

    I tried this:
    make clean
    ./configure --prefix=/usr/local/apache2 \
                        --enable-module=so \
                        --enable-module=rewrite \
                --enable-module=most \
    sudo make install

    In reference to:
    > How do change the HTTPD ROOT
    you need to set it at compile time, most likely with the configure script

    I had the the prefix set to:
     --prefix=/usr/local/apache2 \
    Question: is this how I change the HTTPD ROOT?

    Everything went smoothly up until the make install.
    See there error in the code section here:

    Apparently, the make install is stating some files in the lib folder was moved:
    library `/usr/local/apache2/lib/' was moved.

    libtool: link: cannot find the library `/apache2/lib/' or unhandled argument

    Just fyi:
    the libtool is currently in /usr/local/apache2/lib/.
    How do I repair this?

    These are two separate issues or I suppose related? However, please tell me if prefix is the way to change the HTTPD ROOT. I'll give you the full points and an A for the answer to this question. =)

    If you can help me resolve the other posting regarding the the libtool problem at:
    then it would be an "easy" reward. Of course, if successful it'll be an A reward. =)

    Much thanks for your help in these matters.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now