[SM-Discuss] mod_rewrite and Apache2
fubeca at gmail.com
Fri Feb 3 11:10:33 EST 2006
The only LoadModule instruction anywhere in the conf file is for PHP5.
I tried moving the RewriteEngine On statement from the .htaccess file
to httpd.conf and that generated a similar error. I've rebuilt apache2
numerous times (with corresponding restarts of the service) and can't
get past the error. It sounds like this'll be one for the apache ML or
On 2/3/06, David Kowis <dkowis at shlrm.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> Sergey A. Lipnevich wrote:
> > Do you have a proper "LoadModule" instruction in httpd.conf?
> If the module is compiled in, then a LoadModule instruction will cause
> errors as well...
> > Cory S wrote:
> >> Hi all,
> >> I'm having an issue with mod_rewrite in Apache2 not working. I
> >> selected the module during the cast and when it was finished
> >> 'apachectl -l' showed mod_rewrite as one of the compiled-in modules.
> >> However, I have 'RewriteEngine On' in a .htaccess file which generates
> >> the following error:
> >> [Thu Feb 02 15:55:53 2006] [alert] [client xx.xx.xx.xx]
> >> /usr/share/apache2/htdocs/some/path/.htaccess: Invalid command
> >> 'RewriteEngine', perhaps mis-spelled or defined by a module not
> >> included in the server configuration
> I've no problems with it, perhaps you've not restarted apache? If you
> just built it, then that probably won't apply. I've an .htaccess with
> RewriteEngine On in it for my serendipity weblog. It's got no problems,
> and apachectl -l also has mod_rewrite.c listed. I've no LoadModule line
> for it.
> - --
> David Kowis
> ISO Team Lead - www.sourcemage.org
> Source Mage GNU/Linux
> Progress isn't made by early risers. It's made by lazy men trying to
> find easier ways to do something.
> - Robert Heinlein
> Any sufficiently advanced technology is indistinguishable from magic.
> - Arthur C. Clarke
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (MingW32)
> -----END PGP SIGNATURE-----
> SM-Discuss mailing list
> SM-Discuss at lists.ibiblio.org
More information about the SM-Discuss