Setting up elgg on a new apache server

Hi,

I have an apache server, and I have tried to setup elgg on it. I have AllowOverride: Yes, and copied htaccess_dist to .htaccess. I get this error in the setup.

We think your server is running the Apache web server.

The rewrite test failed and the most likely cause is that AllowOverride is not set to All for Elgg's directory. This prevents Apache from processing the .htaccess file which contains the rewrite rules.

A less likely cause is Apache is configured with an alias for your Elgg directory and you need to set the RewriteBase in your .htaccess. There are further instructions in the .htaccess file in your Elgg directory.

I add RewriteBase / to the top of .htaccess and I get error 500. What am I doing wrong?