I'm using Cpanel with Apache 2.2.8 and PHP 5. According to apachectl -M my rewrite module its getting loaded and the phpinfo is showing mod_rewrite as a loaded module. I tested that is working using the following url:

http://www.webune.com/forums/how-to-test-check-if-mod-rewrite-is-enabled...

I'm not able to enable clean urls because for some reason Drupal 5.7 is not detecting that the Apache server has mod_rewrite enabled.

After further investigation I found that the httpd.conf from cPanel hides the directive LoadModule rewrite_module libexec/mod_rewrite.so to prevent users from changing it. But the module is working because is getting loaded.

It seems that because the directive is hidden from the httpd.conf when drupal reads the httpd.conf it doesnt find the line and it thinks that the mod-rewrite is not installed.

Any inputs?

Comments

bonaparte’s picture

Make sure the AllowOverride directive's value is set to All.

Good luck.

--------------------
Sudheer. S
Binary Vibes Information Technologies Pvt. Ltd.
Learn and and help others learn Linux, Apache, MySQL and PHP
Ava

axlroach’s picture

Make sure .htaccess is in your root dir and configured properly.

jerdiggity’s picture

i had the same problem... very frustrating that, for my setup at least (also Apache), it turned out to be ridiculously simple. i ended up making 'my amateur version of what's supposed to be' a how-to screencast vid and submitted it here.

for me it was ultimately a matter of pushing the Backspace (or Delete) button two times in the .htaccess file. hope it helps!

---
Yo that's shizzle.

kazar’s picture

omg, that was so easy. thank you thank you thank you. If only I had discovered your post 85 hours ago, lol.

I will be pointing to your screencast vid in my how-to blog once i actually get this darned site up. Thanks to you i am much closer!

jerdiggity’s picture

you're quite welcome. actually glad to see that i'm not the only one who had that problem. OH and sorry for any confusion (your last reply said "... GROWTHII" -- used to be my user name on here but I switched after some 'corporate changes' were made...)
either way, glad it worked. :)

j

---
Yo that's shizzle.

jimthunderbird’s picture

Great info, after setting AllowOverride All, things work.

ashlinry’s picture

Thank you so much! I've found a lot of non-specific solutions (e.g., just go to your htaccess, it's in there!..... But what's in there!!!) or ones that didn't pertain to me, but your video helped me out!

I spent hours searching for a solution, gave up, and now was looking again (meeting with the client to finalize the site tomorrow!) and only had to spend 10 min. looking to find you. So, I'm rather happy right now :)