Elgg is a robust open-source social networking engine that permits customers to create their very own social networks and on-line communities. It’s extremely customizable, making it an important alternative for builders and customers seeking to construct interactive web sites.
On this information, we are going to undergo the whole course of of putting in Elgg in your Ubuntu server.
Step 1: Set up Required Dependencies
First, begin by updating your system to verify all current packages are updated to their newest variations.
sudo apt replace -y
sudo apt improve -y
Subsequent, you want to set up Apache (an online server), MySQL (a database server), PHP (the scripting language), and a few PHP extensions to run Elgg correctly on the server.
sudo apt set up apache2 mysql-server php php-mysql php-xml php-mbstring php-zip php-gd php-curl php-json php-cli -y
After putting in MySQL, you want to safe it by operating the next safety script, which is able to assist you to arrange a root password and take away nameless customers.
sudo mysql_secure_installation
Subsequent, we have to arrange a MySQL database and consumer for Elgg.
sudo mysql -u root -p
CREATE DATABASE elgg_db;
CREATE USER ‘your_username’@’localhost’ IDENTIFIED BY ‘your_password’;
GRANT ALL PRIVILEGES ON elgg_db.* TO ‘your_username’@’localhost’;
FLUSH PRIVILEGES;
EXIT;
Step 2: Putting in Elgg in Ubuntu
Now let’s obtain the most recent model from the official Elgg obtain web page or use the next wget command to obtain straight within the Apache internet root listing.
cd /var/www/html/
wget https://elgg.org/obtain/elgg-6.0.5.zip
After downloading, unzip the file and rename the unzipped folder to the elgg listing:
sudo unzip elgg-6.0.5.zip
sudo mv elgg-6.0.5 elgg
Set the right permissions for the Elgg listing to operate appropriately.
sudo mkdir /var/www/html/knowledge
sudo chown -R www-data:www-data /var/www/html/knowledge/
sudo chown -R www-data:www-data /var/www/html/elgg
sudo chmod -R 755 /var/www/html/elgg
Step 3: Configure Apache for Elgg
Create a brand new Apache configuration file to serve the Elgg utility.
sudo nano /and many others/apache2/sites-available/elgg.conf
Add the next configuration into the file (substitute instance.com along with your precise area):
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/elgg
ServerName instance.com
<Listing /var/www/html/elgg>
Choices Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Listing>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/entry.log mixed
</VirtualHost>
Subsequent, you want to allow the brand new web site, and required modules and restart the Apache service to use modifications:
sudo a2ensite elgg.conf
sudo a2enmod rewrite
sudo systemctl restart apache2
Step 4: Full Elgg Set up by way of Net Interface
Now that every part is about up, open your internet browser and navigate to http://localhost/elgg to finish the set up by the online interface.
When you full these steps, click on on “Go to web site” to entry your newly put in Elgg platform.
Step 5: Elgg Submit-Set up Setup
After putting in Elgg, it is best to carry out a number of post-installation duties:
For safety causes, it’s a superb follow to take away the set up listing.
sudo rm -rf /var/www/elgg/installer
To safe your web site, you may arrange SSL utilizing Let’s Encrypt.
sudo apt set up certbot python3-certbot-apache -y
sudo certbot –apache
Comply with the prompts to safe your web site with SSL.
Now you may entry your Elgg web site by https by going to your area identify or IP deal with in your internet browser.
https://localhost/elgg
You’ve gotten efficiently put in Elgg on Ubuntu, now you need to use this highly effective platform to create social networks tailor-made to your wants. Now you can discover its options, customise it additional, and begin constructing your on-line neighborhood.