I was trying to install elgg1.1 at a dreamhost server and it exited with an error message “Elgg error: Elgg does not support PHP 4.”. I tried to add the PHP Add handler to compel the server to use PHP5 instead of PHP4. But, It did not work.

Then, I found that the issue was because the .htaccess file in the elgg install did not detect the PHP version. So, I just did a simple trick to get it working.

I Opened the .htaccess file and commented the following  code in the .htaccess file, and it worked.


# php 4, apache 1.x
#
#    ErrorDocument 500 “Elgg error: Elgg does not support PHP 4.”
#    RedirectMatch 302 .* index.php
#

# php 4, apache 2
#
#    ErrorDocument 500 “Elgg error: Elgg does not support PHP 4.”
#    RedirectMatch 302 .* index.php
#