Apache crash

Had a little server downtime today across all the sites (same server just different VirtualHosts). Apparently, after the last udpate, Apache decided to change where mod_rewrite and mod_auth_dbm looked for their respective modules. Of course, the old files still existed in the same place as they had always been. I just had to dig into the directory tree and find that there was a slew of new files since the last patch. In the meantime, I recompiled both PHP and Apache and was about ready to download the source directly and do it manually rather than with Slackware’s package tool Swaret.

So, for anyone that happens to use Slackware and like to keep it updated, I’ll post the specifics and save you some time.

When restarting Apache you may see this:

Cannot load /usr/local/apache/libexec/mod_rewrite.so into server:
/usr/local/apache/libexec/mod_rewrite.so: undefined symbol: dbm_fetch


Now, don’t bother just giving up too easy and commenting the module out of httpd.conf because if you do then the next module to give the same exact message will be mod_auth_dbm. I should know — I tried!

Here’s the fix… drum roll please…

Edit httpd.conf and change the following:

LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule dbm_auth_module libexec/mod_auth_dbm.so

to

LoadModule rewrite_module libexec/apache/mod_rewrite.so
LoadModule dbm_auth_module libexec/apache/mod_auth_dbm.so

That’s it… tough one eh? It was ending up having some really weird effects on this site in particular because of it’s heavy use of mod_rewrite. When trying to download anything under /journal/ there was a problem with the MIME type so that the PHP script wasn’t being parsed. Strange.

One Response to “Apache crash”

  1. Dad and Mom C. Says:

    This is a little complex. Get’s me wondering if it was dictated by a wife and the husband just did not hear all of the important details. You know, like that study on male brain processing versus female voices ….

Leave a Reply

Ben & Shae Cecka’s family in Gilbert, AZ