How to install ELGG on dreamhost

ELGG is a pretty nice open source social networking package. But it’s relatively new, and installing on Dreamhost causes problems, I got an error message saying that it doesn’t support PHP4, even though Dreamhost runs PHP5.

It seems that the check for php5 is done in the .htaccess file, and somehow it doesn’t recognize that Dreamhost runs PHP5.

To fix the problem, comment out these lines in the .htaccess.

# php 4, apache 1.x
#<IfModule mod_php4.c>
#    ErrorDocument 500 “Elgg error: Elgg does not support PHP 4.”
#    RedirectMatch 302 .* index.php
#</IfModule>

# php 4, apache 2
#<IfModule sapi_apache2.c>
#    ErrorDocument 500 “Elgg error: Elgg does not support PHP 4.”
#    RedirectMatch 302 .* index.php
#</IfModule>

5 thoughts on “How to install ELGG on dreamhost

  1. Hey Peter, Thanks for putting this out there. I also had problems with Dreamhost (even though, after much searching, I discovered they’ve disable PHP 4 since Sept 2008). Another little known fact is that the .htaccess file is by default named “htaccess_dist” in the current Elgg installation.

    O

  2. Thanks. This definitely got rid of the “Elgg doesn’t support PHP4” error message, but that changed to “Elgg couldn’t connect to the database using the given credentials “, although the details in settings.php are accurate. Perhaps it is because the database is empty. Do I need to import a database from somewhere else?
    Thanks,
    Dave.

  3. trying to install elgg1.5 on dreamhost and during setup I get a data folder not writeable message , pretty sure I made it 777 writeable.
    I put it (the empty dadt folder I created per txt) in the elgg folder is that the wrong place

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 )

Connecting to %s