logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: LoadModule "path" configure while compiling
Author
vapovick



Joined: 18 Apr 2013
Posts: 4
Location: USA

PostPosted: Thu 18 Apr '13 22:52    Post subject: LoadModule "path" configure while compiling Reply with quote

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

PostPosted: Mon 22 Apr '13 19:19    Post subject: Am I missing something? Reply with quote

Anyone have any ideas?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 23 Apr '13 11:14    Post subject: Reply with quote

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

PostPosted: Tue 23 Apr '13 18:26    Post subject: --enable-pie Reply with quote

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

PostPosted: Wed 24 Apr '13 0:18    Post subject: httpd.conf Reply with quote

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

PostPosted: Wed 24 Apr '13 11:41    Post subject: Reply with quote

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


Reply to topic   Topic: LoadModule "path" configure while compiling View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads