I think if you take the error from the error log and paste it in google, or even on these forum threads you will quickly find the answer to your problem. Here is a link to the search results on google:
https://www.google.com/search?q=invalid+command+'rewriteengine'&oq=Invalid+command+'RewriteEngine'