Re: Compilation recommendations.

2000-09-26 Thread Paul Lindner

See http://people.redhat.com/plindner/apache/ for a static mod_perl
that runs well on redhat.

I am putting src and i386 rpms there..

Note that this is incomplete.  You'll need to roll your own conf files...

This also includes some oracle and php code too.  Thus it is blessed
'apache-heavy'

I would love to hear feedback on how to improve this distribution.

Thanks.


On Tue, Sep 26, 2000 at 02:45:10PM -0400, darren chamberlain wrote:
> Lord Vorp ([EMAIL PROTECTED]) said something to this effect:
> > Is there an easier/cleaner way to do this???
> 
> 
> Yes:
> 
> # cat > ~/build_mod_perl
> perl Makefile.PL APACHE_SRC=../apache-1.3.9/src \
> DO_HTTPD=1 \
> USE_APACI=1 \
> EVERYTHING=1 \
> APACI_ARGS='--prefix=/usr \
>--with-layout=RedHat --add-module=/usr/src/redhat/SOURCES/mod_bandwidth.c \
>--add-module=/usr/src/redhat/SOURCES/mod_put.c --enable-module=all \
>--enable-shared=max --disable-rule=WANTHSREGEX --disable-module=auth_dbm \
>--with-perl=/usr/bin/perl --enable-suexec --suexec-docroot=/home/httpd/html \
>--suexec-caller=nobody --disable-shared=perl'
> 
> cd mod_perl-#.##
> make
> make install
> cd ../apache-#.#.#
> make install
> ^D
> 
> # cd /usr/local/src
> # sh ~/build_mod_perl
> #
> 
> If you think this is hard, try it without make.
> 
> (darren)
> 
> -- 
> Blind faith in anything, even your leaders, will get you killed.
>   -- Bruce Springsteen

-- 
Paul Lindner
[EMAIL PROTECTED]
Red Hat Inc.



Re: Compilation recommendations.

2000-09-26 Thread darren chamberlain

Lord Vorp ([EMAIL PROTECTED]) said something to this effect:
> Is there an easier/cleaner way to do this???


Yes:

# cat > ~/build_mod_perl
perl Makefile.PL APACHE_SRC=../apache-1.3.9/src \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1 \
APACI_ARGS='--prefix=/usr \
   --with-layout=RedHat --add-module=/usr/src/redhat/SOURCES/mod_bandwidth.c \
   --add-module=/usr/src/redhat/SOURCES/mod_put.c --enable-module=all \
   --enable-shared=max --disable-rule=WANTHSREGEX --disable-module=auth_dbm \
   --with-perl=/usr/bin/perl --enable-suexec --suexec-docroot=/home/httpd/html \
   --suexec-caller=nobody --disable-shared=perl'

cd mod_perl-#.##
make
make install
cd ../apache-#.#.#
make install
^D

# cd /usr/local/src
# sh ~/build_mod_perl
#

If you think this is hard, try it without make.

(darren)

-- 
Blind faith in anything, even your leaders, will get you killed.
-- Bruce Springsteen



Compilation recommendations.

2000-09-26 Thread Lord Vorp

Hi all!

I run mod_perl for my webservers and it's pretty darn nice... ;-)

However, I see comments like, 'Oh, that was a bug log ago fixed in the CVS'
and then I cringe:
Building mod_perl like I want it is not a process I've ever been able to get
"simple."

My environment is RedHat 6.2, but RedHat ships Apache w/ Mod_perl as a DSO.
That causes me absolutely NOTHING BUT PROBLEMS, so...

I took the apache source RPM and expanded it (with RedHat patches), then
expanded mod_perl the same way, and hand-built a makepl_args.mod_perl to
attempt to get a (mostly) RedHat-style httpd with static mod_perl.

In a word, yuck:

APACHE_SRC=../apache-1.3.9/src \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1 \
APACI_ARGS=--prefix=/usr --with-layout=RedHat --add-module=/usr/src/redhat/S
OURCES/mod_bandwidth.c --add-module
=/usr/src/redhat/SOURCES/mod_put.c --enable-module=all --enable-shared=max -
-disable-rule=WANTHSREGEX --disable-module=auth_dbm --with-perl=/usr/bin/per
l --enable-suexec --suexec-docroot=/home/httpd/html --suexec-caller=nobody -
-disable-shared=perl

cd mod_perl-#.##
make
make install
cd ../apache-#.#.#
make install

Is there an easier/cleaner way to do this???

Any suggestions would be very welcome.

L8r,
L V