Invalid command ‘RewriteEngine’

Problem: After updating debian, my Apache2 started giving me


Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

Solution:
To enable Apache2 rewrite module you have to type


sudo a2enmod rewrite

…and then restart apache

/etc/init.d/apache2 restart

That is it for now. more posts later.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s