Elgg is a free open source social networking engine that is written in PHP. It is ideal for developing social networks, intranets, and community sites. This tutorial will guide you through the process of installing Elgg on Elementary OS Latest.
Before we begin, you need to make sure that your system meets the following prerequisites:
gd
, mysql
, mysqli
, and pdo_mysql
.mod_rewrite
module must be enabled.Firstly, you need to download the latest version of Elgg from the official Elgg website. The download link for the latest version is https://elgg.org/.
After downloading Elgg, extract the zip file to your web server document root directory. For example, if you're using XAMPP on Windows, the location would be C:\xampp\htdocs
. If you're using MAMP on Mac, the location would be /Applications/MAMP/htdocs
.
Next, you need to create a MySQL database for your Elgg installation. You can do this using the following steps:
mysql
in a terminal window. On Windows, you can use the MySQL console or the Command Prompt.CREATE DATABASE elgg_database;
where elgg_database
is the name of your database. GRANT ALL PRIVILEGES ON elgg_database.* TO 'elgg_user'@'localhost' IDENTIFIED BY 'password';
Replace elgg_database
, elgg_user
, and password
with your chosen values. Make sure to keep a note of these values as they'll be needed later in the installation process.
Next, we need to set up the configuration files for Elgg.
htaccess_dist
to .htaccess
.elgg-config-dist.php
to elgg-config.php
.elgg-config.php
in a text editor and enter the details of your MySQL database in the following fields:$CONFIG->dbusername = 'elgg_user';
$CONFIG->dbpassword = 'password';
$CONFIG->dbname = 'elgg_database';
Save and close the file.
Now, we can finish the installation process by going to the Elgg installation URL in your web browser.
http://localhost/elgg/
(or whatever your installation directory is named) in your web browser.That's it! You've successfully installed Elgg on your Elementary OS Latest system. You can now start customizing your site and inviting users.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!