Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: mod_rewrite problems
PostPosted: Thu Jul 31, 2008 5:52 am 
Offline
Newbie

Joined: Thu Jul 31, 2008 5:45 am
Posts: 3
I am confused as to why my mod_rewrite appears to be improperly installed. Hope someone can help me with this one.

Currently when I go to /etc/httpd/conf/httpd.conf file it appears mod_rewrite is enabled as I see the following line: "LoadModule rewrite_module modules/mod_rewrite.so". It is not commented out. Additionally, "AllowOverride" is set to "All"

When I go to the modules directory, "mod_rewrite.so" is indeed there

However, when I execute "/usr/sbin/httpd -l | grep mod_rewrite", it apparently is not installed as the expected mod_rewrite.c output does not appear.

Additionally, when I attempt to implement a simple .htaccess file with mod_rewrite, it does not work.

Any help is appreciated.


Top
   
 Post subject:
PostPosted: Thu Jul 31, 2008 6:16 am 
Offline
Newbie

Joined: Thu Jul 31, 2008 5:45 am
Posts: 3
Additionally, when I execute "/usr/sbin/httpd -M" this appears in the output: "rewrite_module (shared)"


Top
   
 Post subject:
PostPosted: Thu Jul 31, 2008 11:55 am 
Offline
Senior Member

Joined: Tue Apr 27, 2004 5:10 pm
Posts: 212
Did you install apache from a tarball or from your distro's repository? In most distros I've worked with, you need to explicitly allow .htaccess files. Try something like this:

Code:
<Directory /path/to/document/root>
    AllowOverride All
</Directory>


Top
   
 Post subject:
PostPosted: Thu Jul 31, 2008 4:17 pm 
Offline
Newbie

Joined: Thu Jul 31, 2008 5:45 am
Posts: 3
Thanks, I have already set "AllowOverride" to "All" for the document root.

I am using CentOS 5 and did indeed install Apache via my distro's repository.


Top
   
 Post subject:
PostPosted: Mon Aug 04, 2008 8:03 pm 
Offline
Senior Newbie

Joined: Sun Aug 03, 2008 11:51 am
Posts: 14
Website: http://fdcga.com
Location: Georgia, USA
bpaw wrote:
Thanks, I have already set "AllowOverride" to "All" for the document root.

I am using CentOS 5 and did indeed install Apache via my distro's repository.


I assume you've checked the error log.

Jim


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group