A group to house material related to running Elgg

Pages home > Installation

Installation

Before you begin, make sure you have read Elgg's technical requirements. If you discover problems after following these instructions, check out the troubleshooting page.

1) Upload Elgg

Unzip Elgg and upload it to your site's document root.

2) Create a data folder

Elgg needs a special folder to store uploaded files, including profile icons and photos. You will need to create this for it.

We recommend that this folder is called data. For security reasons this should be stored outside of your document root. For example, if Elgg is installed in /home/elgg/html/, you might create it in /home/elgg/data.

Once this folder has been created, you'll need to make sure Elgg has permission to write to it. This shouldn't be a problem on Windows-based servers, but if your server runs Linux or a UNIX variant, you'll need to type something like:

chmod 777 /home/elgg/data/

If you use a graphical client to upload files, you can usually set this by right or shift-clicking on the folder and selecting 'properties'.

3) Create a database

Using your database administration tool of choice (if you're unsure about this, ask your system administrator), create a new database for Elgg. Make sure you know the username and password necessary to access this.

4) Visit your Elgg site

Once you've performed these steps, visit your Elgg site in your web browser. Elgg will take you through the rest of the installation process from there.

5) A note on settings and .htaccess

The Elgg installer will try and create two files for you:

  • engine/settings.php, which contains the database settings for your installation
  • .htaccess, which allows Elgg to generate dynamic URLs

If these files can't be automatically generated, for example because you don't have the correct directory permissions, Elgg will tell you how to create them. If, for some reason, this won't work, you will need to:

  • Copy engine/settings.example.php to engine/settings.php, open it up in a text editor and fill in your database details
  • Copy /htaccess_dist to /.htaccess

, ,

Last updated 273 days ago by Pete Harris

I really don't like leaving a directory open with world:write access even if it is outside the web root. I'm guessing that once the settings.php and .htaccess have been created there would be no neccessity for world:write and I could switch it off with chmod 770? Am I correct? I realise that if I want to make any changes via the web interface I'd need to switch it back but I'd rather manually edit the config files anyway.

MarkP

Markpea 267 days ago

Hi!

I'm completly new in XAMPP and ELGG. I have installed XAMPP, created a database (elgdb).
And I don't know how to go on.

Questions:

1. what is my site's document root?  http://localhost/???   c:\xampp\???       Where can I manage this things?

ShonoSF 262 days ago

Hi

Could someone tell what's wrong with this?

*/
  
  // Database username
   $CONFIG->dbuser = "JB";
   
  // Database password
   $CONFIG->dbpass = "JEROEN66";

  // Database name
   $CONFIG->dbname = "dbelgg";
   
  // Database server
  // (For most configurations, you can leave this as 'localhost')
   $CONFIG->dbhost = "localhost";

Because all I get is this

Elgg couldn't connect to the database using the given credentials JB@driftaut (pw: ****).

The password is 1000% correct

 

Could someone help me please?

JB 253 days ago