Forum Moderators: phranque

Message Too Old, No Replies

Enable mod_rewrite

I am trying to enable mod rewrite in apache

         

zooman

7:07 pm on Jun 16, 2006 (gmt 0)

10+ Year Member



I am trying to enable mod rewrite in apache.

1. Found the httpd.conf file
2. Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so
3. Also found the line ClearModuleList and uncommented then found and made sure that the line AddModule mod_rewrite.c was not commented out.

Then restarted Apache and got this.

Syntax error on line 5 of /etc/apache2/httpd.conf:

Cannot load /usr/lib/apache2/modules/mod_placeholder.so into server: /usr/lib/apache2/modules/mod_placeholder.so: cannot open shared object file:

I have commented it out and restarted for the moment. Anyone have any thoughts.

jdMorgan

4:59 pm on Jun 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure why you used ClearModuleList -- Did you look up these directives in the documentation [httpd.apache.org]?

You want to Load and Add the mod_rewrite module, not clear it (and all the others) out.

You will also need to set the FollowSymLinks or SymLinksIfOwnerMatch Options [httpd.apache.org] to enable mod_rewrite.

Jim