How To Install Elgg on Ubuntu 14.04

r00t May 16, 2015

elgg-logo

For those of you who didn’t know, Elgg is an open-source and powerful social networking engine used to create your own social networking web site. It is a PHP-based application and can easily be installed on a Linux VPS.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Elgg (Social Networking Platform) on Ubuntu 14.04.

Step 1. First of all make sure that all packages are up to date.

Step 2. Install LAMP (Apache, PHP and MySQL) on Ubuntu 14.04

Start LAMP service, enable to start on boot:

Step 3. Configuring MySQL for Elgg.

By default, MySQL is not hardened. You can secure MySQL using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MySQL:

Next we will need to log in to the MySQL console and create a database for the Elgg. Run the following command:

This will prompt you for a password, so enter your MySQL root password and hit Enter. Once you are logged in to your database server you need to create a database for Elgg installation:

Step 4. Configuring Apache web server.

Create a new Apache virtual host for Elgg:

Change “AllowOverride None” to “AllowOverride All”:

Turn on the Apache “rewrite” module by running the following command:

Restart your Apache service for the changes to take effect:

Step 5. Install Elgg.

Download the latest stable version of Elgg, At the moment of writing this article it is version 1.11.1:

Move the Elgg installation files and directories:

Move to engine directory and cp the settings example file to settings.php:

Open the settings.php file in your favorite editor:

Create the upload directory and change its permission:

Step 6. Accessing Elgg.

Elgg will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/install.php or http://server-ip/install.php and complete the required the steps to finish the installation. Make sure the web server has permission to write to and create directories in /var/www/html/elgg/. If you are using a firewall, please open port 80 to enable access to the control panel.

how-to-isntall-elgg

Congratulation’s! You have successfully installed Elgg. Thanks for using this tutorial for installing Elgg social networking engine on Ubuntu 14.04 system.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!
Share on Google+0Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon5Share on Reddit1Pin on Pinterest1
The Tags:

Leave a Comment