HumHub is an open-source social network platform that is built with PHP language. It offers a comprehensive range of features and plugins, including user management, activity streams, private messaging, file sharing, and many others. This tutorial will guide you through the process of installing HumHub on the latest version of Fedora CoreOS.
To proceed with the installation of HumHub, you need to have:
Before proceeding with the installation, it is essential to update the system package repositories by running the following command:
dnf -y update
HumHub requires a web server to function correctly. In this tutorial, we’ll use the Apache web server. To install it, run the command:
dnf -y install httpd
HumHub also requires a database management system (DBMS). In this tutorial, we’ll use MariaDB. To install it, run the command:
dnf -y install mariadb-server
After installation, start the MariaDB service and enable it to start automatically at boot:
systemctl start mariadb
systemctl enable mariadb
Then, run the post-installation security script to secure the MariaDB installation:
mysql_secure_installation
After securing the MariaDB installation, you can create a new database for HumHub. Login to the MariaDB shell using the command:
mysql -u root -p
Enter the MariaDB root password when prompted. Then, create a new database using the command:
CREATE DATABASE humhubdb;
Create a new user and grant all privileges to the user on the new database:
CREATE USER 'humhubuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON humhubdb.* TO 'humhubuser'@'localhost';
FLUSH PRIVILEGES;
Replace the password
with your preferred strong password.
HumHub is built with PHP language. In this step, you’ll install PHP and the required extensions by running the following command:
dnf -y install php php-bcmath php-curl php-gd php-json php-mbstring php-mysqlnd php-xml php-zip
In this step, you’ll download the latest version of HumHub and extract it to the web server root directory (/var/www/html
).
cd /var/www/html
wget https://www.humhub.org/en/download/start
tar -xvzf humhub-*.tar.gz
mv humhub-* humhub
Create a new Apache virtual host configuration file by running the command:
nano /etc/httpd/conf.d/humhub.conf
Add the following content to the file:
<VirtualHost *:80>
ServerName your-domain.com
ServerAlias www.your-domain.com
DocumentRoot /var/www/html/humhub
<Directory /var/www/html/humhub/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/httpd/humhub-error.log
CustomLog /var/log/httpd/humhub-access.log combined
</VirtualHost>
Replace your-domain.com
with your domain name.
After adding the configuration, save the file by pressing Ctrl + X
and then Y
.
Set the correct directory and file permissions by running the following commands:
chown -R apache:apache /var/www/html/humhub
chmod -R 755 /var/www/html/humhub
Restart the Apache web server to apply the configuration changes:
systemctl restart httpd
In this step, complete the installation of HumHub by accessing the domain name in your web browser. You’ll see the HumHub web installer interface.
Follow the instructions of the installer to complete the installation:
localhost
humhubdb
humhubuser
password
HumHub
you@your-domain.com
After finishing the installation, you can log in to your HumHub administration panel by accessing the /index.php?r=admin
URL.
Congratulations! You have successfully installed HumHub on Fedora CoreOS. You can now create new users and start using the platform to build your social network. Don't forget to secure your server, keeping it up to date, and backup your data regularly.
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!