[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to rebuild httpd...
As someone mentioned, there is a port in -current (not on the CD,
unfortunately).
If you're more interested in finding ways to build into httpd (ie, you
want to do mod_perl or somesuch, also), I've attached a previous
message of mine detailing how to add mod_perl to httpd
jeff
On Thu, Apr 06, 2000 at 10:11:48AM -0400, Aaron Jackson wrote:
> I am trying to get php support for httpd (so I can run imp
> http://www.horde.org), but I'm having trouble rebuilding from the
> source included on the 2.6 CD. I have been able to get httpd+php to
> build and work properly (hacking through the Makefile in
> usr.sbin/httpd), but mod_ssl doesn't work. I know that there's
> nothing wrong with my ssl setup since if I replace the httpd+php I built
> with the stock httpd that comes with 2.6, everything works fine. So my
> question: what is the proper way to configure and build httpd so it
> keeps all the OpenBSD specific changes? Thanks.
>
> Aaron
>
--
Jeff Bachtel (NOC,CIS,TAMU) http://www.cepheid.org/~jeff
[finger jeff@cepheid.org for PGP key]
"The algorithm to do that is extremely nasty. You might want to
mug someone with it." -- M. Devine, Computer Science 340
I'm sure some of you have already gone and done this, this is for
idiots like me who need step by step instructions for installing stuff
:)
To build mod_perl into apache (assumes you have CPAN module installed,
btw)
(also assumes you have a normal source tree in /usr/src, and a
/usr/obj directory)
cd /usr/src;make obj
cd /usr/src/usr.sbin/httpd
perl -MCPAN -e shell
install Apache
/usr/src/usr.sbin/httpd/src
(accept defaults from here, mod_perl should install itself into apache
source tree and try to build itself)
make -f Makefile.bsd-wrapper clean
make -f Makefile.bsd-wrapper cleandir
vi Makefile.bsd-wrapper
add a "\" to the end of line 572, then add:
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl
save & exit
make -f Makefile.bsd-wrapper EXTRA_LIBS="`perl -MExtUtils::Embed -e \
ldopts`" EXTRA_CFLAGS="`perl -MExtUtils::Embed -e ccopts`"
cp obj/src/httpd /usr/sbin/httpd.new
And, httpd.new should be a brand-spanking-new apache daemon, with
mod_perl built in. I haven't had a chance to thoroughly test mod_perl
yet, but these seem to be valid build instructions.
jeff
--
Jeff Bachtel (NOC,CIS,TAMU) http://www.cepheid.org/~jeff
[finger jeff@cepheid.org for PGP key]
One is not superior merely because one sees the world as odious.
-- Chateaubriand (1768-1848)