Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 12-04-2004, 12:19 AM   #1
LQ Newbie
Registered: Dec 2004
Distribution: SUSE 9.1 Pro
Posts: 4

Rep: Reputation: 0
Suse 9.1 Pro & htaccess file: mod_rewrite not loading

Has anyone encountered this problem?

I'd really like to post the whole situation, but I keep getting a message that I should remove the URLs, despite there not being any URLs in the message, and having re-written the message 4 times to (even) substitute "(slash)" for "/" in the directory that I was quoting.

Old 12-04-2004, 12:27 AM   #2
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
1) Is mod_rewrite being activated in httpd.conf
2) Do you have RewriteEngine On in there too?

Also, your post will probably come through if you enclose it in a [ code ] block, but it may be a post limitation thing

Last edited by sigsegv; 12-04-2004 at 12:29 AM.
Old 12-04-2004, 12:36 AM   #3
LQ Newbie
Registered: Dec 2004
Distribution: SUSE 9.1 Pro
Posts: 4

Original Poster
Rep: Reputation: 0
I've tried "RewriteEngine On" in httpd.conf, in my vhosts.conf file, and (of course) in the .htaccess file. I was doing fine with Suse 9.1 Pro and Mambo/phpBB, etc., until I thought I would tighten up access and reduce spambot pillaging, after reading the security thread at the Mambo forums (security section).

Without the .htacess file in /srv/www/mambo (the install dir for v4.5.1a Mambo that I used), everything is hunky-dory.

The problem comes when I create a .htaccess file in that directory ... Apache 2 throws a 500 error of "Invalid command 'RewriteEngine' "(in the /srv/www/.htaccess file). It's a dedicated, "under-my-control" server sitting beside me in my home, and I'm using http://localhost to access Mambo and phpBB (in the .../mambo/forum directory), BTW, quite successfully without the .htaccess file present in .../mambo.

I checked through Yast and it says Apache 2 provides mod_rewrite and, sure enough, is in the /usr/lib/apache2-prefork library along with all the other .so modules that are loaded in the /etc/Apache2/sysconfigd/loadmodule.conf file.

But there's not an explicit loadmodule line for in that .conf file. So I inserted:
LoadModule rewrite_module /usr/lib/apache2-prefork/

both ahead of, and behind, the:
LoadModule php4_module /usr/lib/apache2-prefork/ line

(obviously not at the same time, but on different tests).

Neither works. Apache 2, in both instances, comes up nicely but discards the inserted LoadModule line for, since the .conf file doesn't contain it after Apache is stopped and restarted.

So if SUSE's Apache 2 is providing mod_rewrite, and it won't stay in the LoadModule.conf file, my conclusion (probably false) is that it's already loaded as a module. But if I use the old standby utility ab_info.php, mod_rewrite doesn't show up as loaded (nor in SysInfo in the Mambo Admin Panel).

At any rate, I'm unable to use mod_rewrite and .htaccess files, and I'd really like to.

Anyone encountered this, or have an insight into what's wrong? The only other conclusion I can draw is that Yast/SUSE are telling falsehoods! So if I regen, there's probably no chance that I'll end up with anything different than I have now.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
OK, Experts - how to load mod_rewrite in Suse 9.1 Pro? sorenson2743 SUSE / openSUSE 2 01-10-2005 12:28 PM
How do I Disable Firewire from loading in Suse 9.1 Pro. rentz Linux - Laptop and Netbook 6 06-18-2004 07:09 AM
mod_rewrite & regex problem webmeister Programming 2 12-30-2003 12:19 PM
Apache & mod_rewrite Modify Linux - Software 0 12-12-2003 09:25 PM
Apache & the .htaccess file robeb Linux - Software 1 05-15-2002 11:56 PM > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:46 AM.

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