Author |
|
vapovick
Joined: 18 Apr 2013 Posts: 4 Location: USA
|
Posted: Thu 18 Apr '13 22:52 Post subject: LoadModule "path" configure while compiling |
|
|
I am compiling Apache 2.2 Prefork into an RPM. I cannot figure out how to get the following :
LoadModule speling_module /usr/local/httpd/modules/mod_speling.so
to be:
LoadModule speling_module modules/mod_speling.so
I have been able to adjust the libexecdir variable to call it something else, i.e.
LoadModule speling_module /usr/lib64/blah/httpd/modules/mod_speling.so
How or what do I set to have it default to modules/mod_name.so ???
Thanks in advance. |
|
Back to top |
|
vapovick
Joined: 18 Apr 2013 Posts: 4 Location: USA
|
Posted: Mon 22 Apr '13 19:19 Post subject: Am I missing something? |
|
|
Anyone have any ideas? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 23 Apr '13 11:14 Post subject: |
|
|
You have to use the fullpath unless you use the --enable-pie option, so that the module will be in the subdirectory modules of the apache. See how I made it Link |
|
Back to top |
|
vapovick
Joined: 18 Apr 2013 Posts: 4 Location: USA
|
Posted: Tue 23 Apr '13 18:26 Post subject: --enable-pie |
|
|
I compiled with that option to no avail. It still shows the full path, is there any additional syntax needed? |
|
Back to top |
|
vapovick
Joined: 18 Apr 2013 Posts: 4 Location: USA
|
Posted: Wed 24 Apr '13 0:18 Post subject: httpd.conf |
|
|
I cant figure it out, the pie option does not work. If I remove %define _libdir /usr/local it will place LoadModule version_module /usr/lib64/httpd/modules/mod_version.so I just want
LoadModule version_module modules/mod_version.so
in the httpd.conf. Sure I could manually adjust this by hand, but want this done at compile time. Any Ideas? Am I using the --enable-pie option correctly? Is enable-pie the correct option to use.
%define _prefix /usr/local/httpd
%define _bindir /usr/local/httpd/bin
%define contentdir /usr/local/httpd/htdocs
%define _sbindir /usr/local/httpd/bin
%define _mandir /usr/local/httpd/man
%define _libdir /usr/local
../configure -q \
--prefix=%{_sysconfdir}/httpd \
--with-apr=/usr/bin/apr-1-config \
--with-apr-util=/usr/bin/apu-1-config \
--with-pcre=/usr/bin/pcre-config \
--exec-prefix=%{_prefix} \
--bindir=%{_bindir} \
--sbindir=%{_sbindir} \
--mandir=%{_mandir} \
--libdir=%{_libdir} \
--sysconfdir=%{_sysconfdir}/httpd/conf \
--libexecdir=%{_libdir}/httpd/modules \
--includedir=%{_includedir}/httpd \
--datadir=%{contentdir} \
--with-installbuilddir=%{_libdir}/httpd/build \
--with-mpm=$mpm \
--enable-suexec --with-suexec \
--with-suexec-caller=%{suexec_caller} \
--with-suexec-docroot=%{contentdir} \
--with-suexec-logfile=%{_localstatedir}/log/httpd/suexec.log \
--with-suexec-bin=%{_sbindir}/suexec \
--with-suexec-uidmin=500 --with-suexec-gidmin=500 \
--enable-pie \
--with-pcre \
$* |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 24 Apr '13 11:41 Post subject: |
|
|
my configure option. Well it is 2.4 ...
Code: | ./buildconf
./configure --prefix=/opt/apache2 --enable-pie --enable-mods-shared=all --enable-so --disable-include --enable-deflate --enable-headers --enable-expires --enable-ssl=shared --enable-mpms-shared=all --with-mpm=event --enable-rewrite --with-z=/home/mario/apache24/httpd-2.4.2/srclib/zlib --enable-module=ssl --enable-fcgid --with-included-apr |
|
|
Back to top |
|