LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-14-2005, 12:49 PM   #1
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Rep: Reputation: 15
Apache upgrade and Mod_rewrite


I upgraded Apache (1.3.33) and PHP a few weeks ago but neglected to actually restart the server until today. Apparently, I broke something earlier.

At first the PHP module wasn't loading and Apache was giving errors that it couldn't find it. No sweat, I just reinstalled PHP quickly with pkgtool.

Apache loads fine now and actually serves pages and allows PHP to parse except for a single directory (that heavily uses mod_rewrite) on a single VirtualHost.

When I run a configtest on Apache I get this:

Quote:
Syntax error on line 224 of /etc/apache/httpd.conf:
Cannot load /usr/libexec/mod_rewrite.so into server: /usr/libexec/mod_rewrite.so: undefined symbol: dbm_fetch
The pages that have an issue are only a single directory and only when using Firefox. Firefox is treating them as if I have no MIME type specified and trying to download them. IE works fine with it...
 
Old 08-15-2005, 06:43 AM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
You didn't say whether you installed some pre-compiled packages or you compiled form source. I've not had that error before but I would hazard a guess that you have not updated mod_rewrite and apache is trying to use the version from the previous package.

If you installed from packages there may be a mod_rewrite package to install

If you compiled from sources, recompile and make sure that you enable mod_rewrite during configuration `./configure --help` for more details
 
Old 08-15-2005, 11:55 AM   #3
silmaril8n
Member
 
Registered: May 2004
Posts: 123

Original Poster
Rep: Reputation: 15
Well I hate to say but I'm not sure. I used Swaret to remove it and re-install it (I removed Apache from /var/swaret/) but I didn't give it any arguments. Even though I've been using Slackware for a few years now I haven't had to do too much gnitty gritty with it.

Either way, I did find out that there were several .so files in a new directory under /libexec/apache.

I updated that in my httpd.conf and voila.... it worked again without any odd happenings.

If anyone wants to shed some more light so I can further my understanding of Swaret it would be greatly appreciated. Or maybe there is a more preferred method?

Thanks for the reply.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache mod_rewrite problems Spudley Programming 2 12-01-2005 02:10 PM
Apache mod_rewrite problems compu73rg33k Linux - Software 0 11-27-2005 09:42 AM
Apache Mod_rewrite help! soulsniper Linux - Software 0 01-16-2005 05:23 PM
Apache:mod_rewrite MadMikie Linux - Software 0 08-03-2004 07:33 AM
Apache and mod_rewrite notsoevil Linux - General 0 01-23-2002 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration