Server Version: Apache/2.0.39 (Unix) mod_perl/1.99_07-dev Perl/v5.6.1
I believe that the install process does not test for the presence (or
lack of..) of the <apache_server_root>/modules directory.
This causes a problem during the mod_perl installation as the
pseudo-command "cp $SOURCE/mod_perl.so $SERVER/modules" creates a large
file called "modules", not a file called "mod_perl.so" within a
directory called "modules"
To demonstrate the issue, I did the following:
1) create an apache with the configure options of:
TARGET=httpd2.mod_perl ./configure --build=i686
--enable-layout=Lucas.mod_perl --enable-mime-magic --enable-expires
--enable-info --enable-cgi --enable-include --enable-negotiation
--disable-userdir --with-program-name=httpd2_mod_perl --with-mpm=prefork
(config.layout contains:
<Layout Lucas.mod_perl>
prefix: /home/cpan/apache2.mod_perl
exec_prefix: /home/cpan
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/sbin
libdir: ${exec_prefix}/lib
libexecdir: ${exec_prefix}/libexec
mandir: ${prefix}/man
sysconfdir: ${prefix}/etc
datadir: ${prefix}/share
iconsdir: ${datadir}/icons
htdocsdir: ${datadir}/htodcs
manualdir: ${htdocsdir}/manual
cgidir: ${datadir}/cgi-bin
includedir: ${prefix}/include
localstatedir: ${prefix}/var
runtimedir: ${prefix}/var/run
logfiledir: ${localstatedir}/log
proxycachedir: ${localstatedir}/proxy
infodir: ${localstatedir}/info
installbuilddir: ${sysconfdir}/build
errordir: ${datadir}/error
</Layout>
)
Build and install Mod-Perl with:
perl Makefile.PL MP_DEBUG=1 MP_INST_APACHE2=1
MP_AP_PREFIX=/home/cpan/apache2.mod_perl
then make && make install.
This creates a large file called "modules" in the $SERVERROOT directory.
If I physically make the modules/ directory after step 1, then the
mod_perl.so file is copied across correctly.
I've also tested this with httpd 2.0.43, and it does the same think --
no .../modules directory is created.
Ta..
--
--==++
Ian Stuart: Edinburgh University Data Library.
Information is not knowledge
Knowledge is not wisdom
Wisdom is not truth
Truth is not beauty
Beauty is not love
Love is not music
-- Mary.
Personal web site: http://lucas.ucs.ed.ac.uk/