Elgg is an open-source social networking software that provides individuals and organizations with the components needed to create an online social environment

Step1. Install packages.

yum install httpd mariadb mariadb-server   

Step2. Start services

systemctl start httpd
systemctl enable httpd
systemctl status httpd
systemctl start mariadb
systemctl enable mariadb
systemctl status mariadb

Step3. Enable HTTP port on the firewall

firewall-cmd --zone=public --permanent --add-service=httpĂ‚ 
firewall-cmd --reload

Step4. Setup database

mysql_secure_installation 

Step5. Create a database

mysql -user root -p
show databases;
Create database elggdb;
CREATE USER 'elgguser'@'localhost' IDENTIFIED BY 'redhat@123';
GRANT ALL PRIVILEGES ON elggdb.* TO 'elgguser'@'localhost';
CREATE USER 'elgguser'@'%' IDENTIFIED BY 'redhat@123';
select Host,User,Password from user;
GRANT ALL PRIVILEGES ON elggdb.* TO 'elgguser'@'%';
FLUSH PRIVILEGES;
quit
Bye

Step6. Install and configure PHP repository

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php72

Step7. Install PHP packages

yum install php-mysql php-gd php-ldap php-xml php-xmlrpc php-mbstring php-mcrypt curl zlib libtool-ltdl php-pdo

Step8. Download Elgg

yum install wget unzip
wget https://elgg.org/about/getelgg?forward=elgg-3.2.0.zip

Step9. Unzip file

unzip getelgg\?forward=elgg-3.2.0.zip

Step10. Move folder in HTML folder

mv elgg-3.2.0/  /var/www/html/elgg
cd /var/www/html/

Step11. Create folder Elgg data

cd /var/www/html/
mkdir elggdata

Step12. Set permission

chown -R apache.apache /var/www/html/elgg/

Step13. Create a virtual host file

vi /etc/httpd/conf.d/elgg.conf 

<VirtualHost *:80>
     ServerAdmin localhost
     DocumentRoot "/var/www/html/elgg/"
     ServerName 192.168.33.51
     ErrorLog "/var/log/httpd/elgg-error_log"
     CustomLog "/var/log/httpd/elgg-access_log" combined

     <Directory "/var/www/html/elgg/">
         DirectoryIndex index.html index.php install.php
         Options FollowSymLinks
         AllowOverride All
         Require all granted
     </Directory>
</VirtualHost>

Step14. Restart the service.

systemctl restart httpd 

Step15. Access via browser

http://<server ip>/elgg

LEAVE A REPLY

Please enter your comment!
Please enter your name here