Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Tutorials»Install Elgg (Social Networking Platform) on CentOS RHEL 6/5

    Install Elgg (Social Networking Platform) on CentOS RHEL 6/5

    RahulBy RahulJanuary 5, 20142 Mins Read

    Elgg is an opensource PHP based application. This is very useful creating social networking site in few minutes. Click here to read more about Elgg.

    This article will help you to install Elgg on LAMP environment on CentOS, RHEL & Fedora systems. For this tutorial we assume that you already have LAMP setup on your system. If you do not have LAMP setup use this article to setup.

    Step 1: Download Elgg Archive and Extract

    Firstly we need to downlaod Elgg archive file and extract it in appropriate directory.

    # cd /var/www
    # wget  wget http://elgg.org/download/elgg-1.8.17.zip
    

    Extract archive in document root of you domain and update permissions on files.

    # tar xzf elgg-1.8.17.zip
    # mv elgg-1.8.17 elgg
    # chown -R apache.apache elgg
    # chmod -R 755 elgg
    

    Create Elgg data directory, where elgg saved its files.

    # mkdir /var/www/elggdata
    
    Step 2: Create MySQL Database and User

    After extracting code we need to create a MySQL database and user account for configuring Elgg. Use following set of command to do it

    # mysql -u root -p
    Enter password:
    
    mysql> CREATE DATABASE elgg;
    mysql> GRANT ALL ON elgg.* to 'elgg'@'localhost' IDENTIFIED BY '_secret_password_';
    mysql> FLUSH PRIVILEGES;
    mysql> quit
    
    Step 3: Configure Apache VirtualHost

    Edit apache configuration file and add a new virtual host for WordPress setup like below.

    # vim /etc/httpd/conf/httpd.conf
    

    Add following setting at end of file

    <VirtualHost *:80>
        ServerAdmin [email protected]
        DocumentRoot /var/www/elgg
        ServerName elgg.tecadmin.net
        <Directory /var/www/elgg>
            Allowoverride all
        </Directory>
    </VirtualHost>
    

    If you already have another virtualhost created in config file, make sure to enable NameVirtulHost for using multiple VirtualHosts.

    Reload Apache service to read configuration file again.

    # service httpd reload
    
    Step 4: Finish Installation using Web Installer

    Elgg provides an web installer for easy to setup without editing files manually. After completing above steps just point your browser to your domain.

    4.1 Open following URL in Browser and Click on Next

    elgg-setup-step-1

    4.2 Make sure all requirement fulfill and click Next

    elgg-setup-step-2

    4.3 Enter the database details and click Next

    elgg-setup-step-3

    4.4 Enter the site details and click Next

    elgg-setup-step-4

    4.5 Insert admin user details and click Next

    elgg-setup-step-5

    4.6 Finally installation completed and click Go to site

    elgg-setup-step-6

    Now you have successfully created your own social networking site using Elgg.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleEnable Apache Gzip Compression (mod_deflate) in cPanel Account
    Next Article How to Setup Caching NameServer on CentOS/RHEL 6/5

    Related Posts

    What is the /etc/aliases file

    2 Mins Read

    What is the /etc/nsswitch.conf file in Linux

    2 Mins Read

    How to Setup Squid Proxy Server on Ubuntu and Debian

    Updated:June 17, 20225 Mins Read

    How to Delete a Let’s Encrypt Certificate using Certbot

    Updated:June 3, 20222 Mins Read

    How to Install Latest Git on Ubuntu 22.04

    Updated:May 31, 20222 Mins Read

    How To Install LibreOffice on Ubuntu 22.04

    Updated:May 23, 20222 Mins Read

    1 Comment

    1. Daniel on July 19, 2016 4:47 am

      I create a date base on mariadb but even that, when on DataBase Installation it shows me that the database does not exist, that i have to create one but i’ve already created, i drop it and i create it once again but the same error. Please some help 🙁

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How To Install Docker on Ubuntu 22.04
    • How to Install Bower on Ubuntu 22.04 & 20.04
    • How to run “npm start” through Docker
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.