• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install Elgg on Ubuntu 16.04

{{postValue.id}}

To install Elgg on Ubuntu 17.04

In our previous article, we have seen about the installation procedure of Elgg on Ubuntu 16.04. In this article, we will be briefed about the installation procedure of Elgg on Ubuntu 17.04. 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.

Pre-Requirement
- LAMP (Apache, PHP 5.6, MariaDB)

- MariaDB (create database and user. Provide privileges to user)

- PHP modules (php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring)

Installation procedure

To proceed with the installation procedure, enter into HTML location by executing the following cd command.

root@linuxhelp11:~# cd /var/www/html/


Next download the Elgg package by running the wget command followed by the download link.

root@linuxhelp11:/var/www/html# wget https://elgg.org/download/elgg-2.3.4.zip
--2017-10-26 02:51:07--  https://elgg.org/download/elgg-2.3.4.zip
Resolving elgg.org (elgg.org)... 140.211.15.97
Connecting to elgg.org (elgg.org)|140.211.15.97|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25414873 (24M) [application/zip]
Saving to: ‘ elgg-2.3.4.zip’ 

elgg-2.3.4.zip        100%[========================> ]  24.24M  1.01MB/s    in 25s     

2017-10-26 02:51:34 (1001 KB/s) - ‘ elgg-2.3.4.zip’  saved [25414873/25414873]

Extract the downloaded package by using the unzip command.

root@linuxhelp11:/var/www/html# unzip elgg-2.3.4.zip
Archive:  elgg-2.3.4.zip
   creating: elgg-2.3.4/
  inflating: elgg-2.3.4/install.php  
  inflating: elgg-2.3.4/upgrade.php  
  inflating: elgg-2.3.4/composer.json  
   creating: elgg-2.3.4/mod/
   creating: elgg-2.3.4/mod/blog/
  inflating: elgg-2.3.4/mod/blog/start.php  
  inflating: elgg-2.3.4/mod/blog/activate.php  
   creating: elgg-2.3.4/mod/blog/views/
   creating: elgg-2.3.4/mod/blog/views/default/
   creating: elgg-2.3.4/mod/blog/views/default/blog/
.
.

 inflating: elgg-2.3.4/vendor/zendframework/zend-mime/CONTRIBUTING.md  
  inflating: elgg-2.3.4/vendor/zendframework/zend-mime/LICENSE.md  
  inflating: elgg-2.3.4/index.php    

Rename the extracted directory to any name the user desires.

root@linuxhelp11:/var/www/html# mv elgg-2.3.4 elgg 

Create a virtual host configuration file named elgg.conf and enter the following contents in the file. Save and exit the file.

root@linuxhelp11:/var/www/html# nano /etc/apache2/sites-available/elgg.conf
< VirtualHost *:80> 
ServerAdmin admin@elgg.com
DocumentRoot /var/www/html/elgg/
ServerName elgg.com
ServerAlias www.elgg.com
ErrorLog logs/elgg.com-error_log
CustomLog logs/elgg.com-access_log common
< /VirtualHost> 

Provide the entry in hosts file by entering the following content in the file. Save and exit the file.

root@linuxhelp11:/var/www/html# nano /etc/hosts
< ipaddress>  elgg.com

Create a directory for Elgg named elggdata by running the mkdir command as follows.

root@linuxhelp11:/var/www/html# mkdir elggdata

Change the ownership of file in HTML location by executing the following command.

root@linuxhelp11:/var/www/html# chown -R www-data.www-data /var/www/html/

Restart the Apache service.

root@linuxhelp11:/var/www/html# systemctl restart apache2

Switch over to the browser and enter the URL as https://elgg.com/install.php. The installation page of Elgg appears on the screen. Click Next option.

installer

This window shows the system requirements before starting the installation procedure and click Next.
system requirements
system check

Enter the following details to create a database and click Next.

database details
Enter the required details to configure the site and click Next.
site configuration

Enter the required details for creating an admin account and click Next.
admin details
The installation is now complete. Click Go to Site option to enter into the Elgg' s admin page.
site

The admin page of Elgg appears on the screen.
admin page
Thus we conclude the installation procedure of Elgg on Ubuntu 16.04.

Tags:
noah
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

How do I change PHP settings using .htaccess?

A

ou may want to change php settings in your .htaccess file. This is especially true if your hosting provider does not give you access to the server’s php.ini file. The variables could be related to file upload size limits, security, session length, or any number of other php attributes.

Q

By default what version of php is installed in ubuntu 17.04

A

Php 7.0 will be installed for the standard installation

Q

Why it shows the Forbidden error 403?

A

Check with the permissions "chown -R www-data.www-data /var/www/html/"

Q

Why the HTTPS login turned on accidently?

A

If you have turned on HTTPS login but do not have SSL configured, you are now locked out of your Elgg install. To turn off this configuration parameter, you will need to edit your database. Use a tool like phpMyAdmin to view your database. Select the config table and delete the row that has the name https_login.

Q

500 - Internal Server Error
What is it?

A

500 - Internal Server Error means the web server experienced a problem serving a request.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaiah ?
What is the use of SUID & SGID commands

How to set the special permissions to the files and folders using SUID and SGID commands...

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.