On Tue, 2003-04-29 at 06:21, Tom Gazzini wrote:
> Anyway, for sanity's sake (or what's left of it) I tried once again to
> type in the Makefile.PL args by hand exactly by the book (the Cookbook
> to be exact). So I typed the following:
>
> perl Makefile.PL \
> APACHE_SRC=../apache_1.3.27/src \
> APACHE_PREFIX=/usr/local/apache \
> EVERYTHING=1 \
> DO_HTTPD=1 \
> PORT=80 \
> USE_APACI=1 \
> APACI_ARGS='--enable-module=rewrite, \
> --enable-module=info, \
> --enable-module=expires, \
> --disable-module=userdir'
Do you really require all of that extra configuration? Are you planning
to use mod_rewrite and mod_expires?
I typically use this one-liner:
perl Makefile.PL DO_HTTPD=1 USE_APACI=1 APACHE_PREFIX=/usr/local/apache
> "make && make test && make install" proceed without any problems.
> However, this doesn't use the file layout that I need (I'm using RH
> 7.2).
Is there any special reason you want to do it Red Hat's way? It's not
necessary, and their location is non-standard. Putting it in the
default /usr/local/apache/ is more typical and I've always run it that
way on Red Hat.
> Also, I have to use PORT=80 because otherwise make test terminates
> with a "Cannot bind to port 8529, port already in use" error.
Sounds like you could just use any other port that is unused, like 8530,
8531, etc.
> So I add '--with-layout=RedHat' to the APACI_ARGS above (and without
> changing anything else) and try again. This time "make && make test &&
> make install" work fine again. However, when I try and run httpd, I get
> the following error:
>
> Syntax error on line 206 of /etc/httpd/conf/httpd.conf
> Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
> not included in the server configuration.
That's because you are running it with the httpd.conf file that Red Hat
made, even though you are now running a completely different server.
Theirs was compiled as a DSO, so it needed those directives. Your is
compiled statically, so it doesn't. You would be better off scrapping
their conf file and making your own, starting with the template that
comes with apache.
- Perrin
|