#Installing Elgg on Manjaro

Elgg is a powerful open-source social networking platform that allows users to connect and share information with each other. In this tutorial, we will go through the steps to install Elgg on Manjaro.

##Prerequisites Before installing Elgg, ensure that you have the following pre-requisites installed in your system.

Note: Ensure that you have administrative privileges before proceeding with the installation.

##Step 1 - Install Apache Server To install the Apache server, run the following command in the terminal.

sudo pacman -S apache

After the installation completes, start the Apache service by executing the below command.

sudo systemctl start httpd

##Step 2 - Install MariaDB To install MariaDB, run the following command in the terminal.

sudo pacman -S mariadb

After the installation completes, start the MariaDB service by executing the below command.

sudo systemctl start mariadb

##Step 3 - Install PHP Next, install PHP by running the following command in the terminal.

sudo pacman -S php php-apache php-gd

After the installation completes, restart the Apache service to enable PHP module by executing the below command.

sudo systemctl restart httpd

##Step 4 - Create Database Create a new database for Elgg by executing the following commands.

sudo mysqladmin create elgg
sudo mysql_secure_installation

Provide the required credentials while setting up the root user password, and secure the installation of MariaDB.

##Step 5 - Download Elgg Download the latest version of Elgg from the official website or use the following command to download it using the terminal.

wget https://elgg.org/getelgg.php?forward=elgg-3.3.10.zip -O elgg.zip

Note: Replace the version number of Elgg in the URL with the latest one.

After the download completes, extract the downloaded file using the following command.

unzip elgg.zip

##Step 6 - Move Elgg to Web Directory To move Elgg to the web directory, run the following command.

sudo mv elgg-3.3.10 /srv/http/elgg

##Step 7 - Change Ownership and Permissions Change the ownership of Elgg directory to the Apache user and set the permissions using the following commands.

sudo chown -R http:http /srv/http/elgg
sudo chmod -R 775 /srv/http/elgg

##Step 8 - Install Elgg Launch a web browser and go to the following URL.

http://localhost/elgg/install.php

Follow the instructions displayed on the screen to complete the installation. Enter the database credentials and other required information in the installation wizard, and click on the "Install" button.

##Step 9 - Remove Install Script After completing the installation, ensure that you remove the 'install.php' script by running the following command.

sudo rm /srv/http/elgg/install.php

##Conclusion That's it! You have successfully installed Elgg on Manjaro. You can now explore the features of Elgg by visiting the URL http://localhost/elgg in your web browser.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!