LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-03-2004, 11:19 PM   #1
sorenson2743
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.

TIA
 
Old 12-03-2004, 11:27 PM   #2
sigsegv
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-03-2004 at 11:29 PM.
 
Old 12-03-2004, 11:36 PM   #3
sorenson2743
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, mod_rewrite.so 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 mod_rewrite.so in that .conf file. So I inserted:
LoadModule rewrite_module /usr/lib/apache2-prefork/mod_rewrite.so

both ahead of, and behind, the:
LoadModule php4_module /usr/lib/apache2-prefork/libphp4.so 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 mod_rewrite.so, 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.
 
  


Reply


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 11:28 AM
How do I Disable Firewire from loading in Suse 9.1 Pro. rentz Linux - Laptop and Netbook 6 06-18-2004 06:09 AM
mod_rewrite & regex problem webmeister Programming 2 12-30-2003 11:19 AM
Apache & mod_rewrite Modify Linux - Software 0 12-12-2003 08:25 PM
Apache & the .htaccess file robeb Linux - Software 1 05-15-2002 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:15 AM.

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