Link to home
Start Free TrialLog in
Avatar of Victor Kimura
Victor KimuraFlag for Canada

asked on

so modules of apache 2.x for mac

Hi,

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/mod_authn_file.so into server: cannot create object file image or add library

I have a file mod_authn_file.a and a file mod_authn_file.la 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"?

Avatar of Victor Kimura
Victor Kimura
Flag of Canada image

ASKER

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_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 DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/apache2"
 -D SUEXEC_BIN="/apache2/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"

How do change the HTTPD ROOT to "/usr/local/apache2":
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi ahoffmann,

I have another affiliated posting here:
https://www.experts-exchange.com/questions/24167152/install-apache-2-2-x-on-mac.html

I tried this:
make clean
./configure --prefix=/usr/local/apache2 \
                    --enable-module=so \
                    --enable-module=rewrite \
            --enable-mods-shared=all\
            --enable-proxy=shared\
            --enable-proxy_http=shared\
            --enable-ssl=shared\
            --enable-module=most \
            --enable-shared=max\
                    --with-layout=Apache
...
make
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:
https://www.experts-exchange.com/questions/24167152/install-apache-2-2-x-on-mac.html

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

to:
libtool: link: cannot find the library `/apache2/lib/libexpat.la' 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:
https://www.experts-exchange.com/questions/24167152/install-apache-2-2-x-on-mac.html
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.
vkimura