[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] RE: mod_auth_mysql



"Bayhawk" <bayhawk@xxxxxxxxxxxxxx> wrote:
> Thanks Steve.
> I think im on my way now. If I understand you correctly, I need to compile
> mod_auth_mysql then run apxs with the apropriate file.

Not exactly.  There are two ways to add an Apache module to Apache.  The
method I usually use is the more complex method, but I like to do things the
hard way.  I compile the Apache modules I need, then I recompile Apache from
source and configure it for those modules.  I consider this complex because
you may have many modules currently compiled into Apache and you'll want to
make sure they're all there if you recompile Apache.  This means you'll have
to compile many programs, then recompile Apache.  Apache runs faster with
modules compiled into the Apache binary so I do it this way.  The
alternative is to install Apache modules as DSOs (dynamically shared
objects).  Apache is about 5-10% slower this way based on my own benchmarks,
but that's usually acceptable for most people.  apxs is a tool for
installing Apache modules as DSOs.  Using this method you *do not* have to
recompile Apache.  Apache simply references the DSO from a separate file
when the Apache binary is run.  To use apxs you call it from the ./configure
step of the module you are installing.  To read the ./configure help file
and find the line about it do:

./configure --help | grep apxs

In your case, to use apxs you'll do:

./configure --with-apxs=/usr/sbin/apx

Like I showed in my instructions (which were for compiling mod_auth_mysql
*into* Apache instead of as a DSO) you need to point to the Apache source
code in the above step.  Unfortunately, I believe it's not on the RaQ4
(unless I've missed it and Cobalt put it there since it wasn't on earlier
RaQs).  So you'll need to find the Apache source for your version of Apache
on www.apache.org, untar it and refer to that directory in the above step.
To find your version go to the shell and type:

httpd -v

> The key for me right now is getting past the compiling. I know where the
> /mysql files are, its the right Apache directory that im lost on.
> Unfortunately, being new to the RAQ means im exploring everything fresh
and
> new.
>
> I will get there, thanks for starting me on the right path..

Hopefully this clears up what you need to do.  Good luck.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/