I do not think the --prefix option is the key. They key is probably the order
of the options.My final ./configure line (broken up line by line).
cd httpd-2.4.12/
mkdir -v srclib/apr/ srclib/apr-util/
mv -v ../apr-1.5.2/* srclib/apr/
mv -v ../apr-util-1.5.4/* srclib/apr-util/
./configure --enable-mods-shared=all \ <---Perhaps the most important
position of all.
--prefix=/usr/local/apache2
--with-mpm=prefork \
--with-pcre=/usr/local/bin/pcre-config \
--with-included-apr \
--with-z=/usr/local/lib \
--with-ssl=/usr/local/ssl \
--with-sslport=443 \
--with-port=80
make && make install && ./httpd -l && ./httpd -M
cd ~/downloads/
sleep 5
[Install PHP 5.6.9][Install Bind 9.10.2]
etc ...
It works.
From: Jeff Trawick <[email protected]>
To: [email protected]
Sent: Saturday, June 27, 2015 4:43 PM
Subject: Re: [users@httpd] Help. DSOs not being built from source? Apache
2.4.12 & CentOS 7 (x86_64)
On 06/27/2015 10:53 AM, Anthony Rutledge wrote:
DSOs not being built from source? Apache 2.4.12 & CentOS 7 (x86_64)
This is a good question for those who are experts at installing Apache 2.4.12
from source.
First, no errors are being generated. My "configure, make, make install"
sequence successfully creates a /usr/local/apache2/ directory. Second, I have
read the manual, poured over ./configure -h, searched the web, and no where
does there seem to be anyone experiencing the same problem as me. No matter
what "configure --foo-bar" sequence/combination I use, the shared modules are
never built, or I cannot find them. I expect them to be under
/usr/local/modules/, but all I get are *.a and *.la files. Alright, gurus, what
am I missing?
Again, no matter what configure sequence/combination I try, *.so (DSO) files
are never built, or I cannot find them.
apachectl -l does list mod_so as being compiled in statically.
(P.S. Also posted on: ServerFault at
http://serverfault.com/questions/701992/apache-2-4-12-centos-7-dso-shared-modules-not-being-built-during-compile
)
Can someone explain why no DSO's are being built, or how to build at least
one? Very strange.
Maybe you didn't "make distclean" between attempts at different configure
invocations in the same dirty source tree?
Here's one simple recipe to try:
(change /tmp/test-config if you don't have sufficient space there)
unpack source again
cd httpd-2.4.12
./configure --enable-mods-shared=few --prefix=/tmp/test-config > cfgout 2>&1
&& make >makeout 2>&1 && make install > installout 2>&1 && ./httpd -l &&
./httpd -M
Does it finish? What is the output?