After i made a new Apache installation on Ubuntu in whose httpd.conf file i use the

RewriteEngine on

command, i got the following error, when starting Apache:

Invalid command ‘RewriteEngine’

To fix this problem, i executed

sudo a2enmod rewrite

to enable the Rewrite module.

  • Ken

    Thank you! You just saved me a few more hours of searching to figure this out. I am switching to my own apache setup after years of managed hosting. Thanks again.