How to install HumHub on Elementary OS Latest

HumHub is an open-source social networking software, which allows you to create your own social network for a variety of purposes. In this tutorial, we will be installing HumHub on Elementary OS Latest.

Prerequisites

Steps

  1. Open the Terminal application by pressing Ctrl + Alt + T on your keyboard.

  2. Update the package index and upgrade the installed packages in your system by typing the following command in the Terminal and pressing enter:

sudo apt update && sudo apt upgrade
  1. Install the required dependencies for HumHub:
sudo apt install apache2 libapache2-mod-php7.4 php7.4-gd php7.4-json php7.4-mysql php7.4-curl php7.4-xml php7.4-mbstring php7.4-intl php7.4-zip unzip
  1. Download the latest HumHub installation package from the official website using wget command:
wget https://www.humhub.org/en/download/package/latest
  1. Extract the downloaded archive using the following command:
unzip latest
  1. Copy the extracted files to the web server's document root directory. In this tutorial, we will copy it to the default Apache document root directory:
sudo mv humhub-*/ /var/www/html/humhub
  1. Set the correct file permission for the HumHub directory:
sudo chown -R www-data:www-data /var/www/html/humhub
  1. Create a new Apache configuration file for HumHub:
sudo nano /etc/apache2/sites-available/humhub.conf
  1. Add the following content to the configuration file:
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/humhub

<Directory /var/www/html/humhub/>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/humhub_error.log
CustomLog ${APACHE_LOG_DIR}/humhub_access.log combined
</VirtualHost>
  1. Enable the newly created configuration file:
sudo a2ensite humhub.conf
  1. Restart the Apache web server to apply the changes:
sudo systemctl restart apache2
  1. Open your web browser and navigate to the following address:
http://localhost/install/index.php
  1. Follow the on-screen instructions to complete the HumHub installation.

Congratulations! You have successfully installed HumHub on Elementary OS Latest. You can now create your own social network and customize it to your needs.

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!

Alternatively, for the best virtual desktop, try Shells!