Tim, > I can't get mod_jk to work - getting 'garbled' error suggesting it's > not compiled against same version of apache? Here's the specifics:
[snip] > Installed Apache 2.2.2 with > # ./configure --enable-rewrite=shared --enable-deflate=shared \ > --enable-alias=shared --enable-cache=shared \ > --enable-dbd=shared --enable-disk-cache=shared \ > --enable-proxy=shared --enable-proxy-ajp=shared > # make > # make install Does --enable-FOO=shared automatically enable DSOs? Sounds like a stupid question, but everything else you did looks good. > Installed mod_jk 1.2.18 from source including: > # ./buildconf.sh > # ./configure --with-apxs=/usr/local/apache2/bin/apxs > # make > # make install Are you sure that /usr/local/apache2/bin/apxs is the right one to choose? Where did "make install" put everything when you installed Apache? You did say that you had a fresh install of CentOS, so I can't imagine that you have a competing version of Apache in there. :( > But once I included mod_jk.conf into httpd.conf I got an error about > mod_jk.so being 'garbled' and possibly not a DSO. Can you post the exact error message? I assume you get this message on startup? > > From searching on the error and trying to read up on apxs, it appears > > mod_jk was not compiled against the correct version of apache. However, > I believe apxs was just newly created when I compiled apache so I'm not > sure why it would be different or how to fix it. I did notice there's > another copy of apxs in the /usr/sbin. using that in the configure > command did not work, but I might have messed something else up in the > meantime, so let me know if I should try that again. Aah. Is it possible that you installed Apache as part of the OS installation, and then you compiled it yourself as well? That could explain what's going on: you are building mod_jk against /usr/local/apache2/bin/apxs, but then you are starting the server using the packaged Apache?? Just grasping at straws. > In case it helps, I did notice that the configure script from mod_jk > referred to apache-2.0 and I'm using apache-2.2, but not sure if that's > meaningful My suggestion above is almost certainly the problem: you have two competing versions of Apache installed. You should pick one and uninstall the other. From experience, I have to say that using the version available from the package manager (does CentOS use RPM?) is almost always better than compiling everything yourself, because dependencies are generally checked appropriately, etc. when you let the package manager handle everything. Just my .02. -chris
signature.asc
Description: OpenPGP digital signature