HumHub is an Open Source Enterprise Social Network. Easy to install, intuitive to use, and extendable with countless freely available modules. In this article, we are going to learn how to install Humhub on Rocky Linux 8. So, let’s get started.
Checkout the Humhub Project Here.
Try this wiki on our VPS. Starting at just $5/month with 24x7 In-house customer support.
A system with Rocky Linux 8 installed and running.
rootaccess to the system.
- LAMP Stack installed and running, for this, you can refer to one of our guides on installing the LAMP Stack (Apache, MariaDB, and PHP).
Once you're all set, we'll proceed with Humhub installation and configuration.
Let us begin with creating a Database and a user. We will then grant the required privileges to the user so it can interact with the Database.
mysql -u root CREATE DATABASE crowncloud; CREATE USER 'crowncloud'@'localhost' IDENTIFIED BY 'YOUR-PASSWORD-HERE'; GRANT ALL PRIVILEGES ON crowncloud.* TO 'crowncloud'@'localhost'; FLUSH PRIVILEGES; QUIT
The above commands will give complete access to the user
YOUR-PASSWORD-HEREwith a safe and secure password.
Next we will install Let's Encrypt SSL cert so we can have the domain running on HTTPS.
You can refer the following link for instructions on how to Install Let's Encrypt.
Download Humhub from official website : Click here.
cd /var/www/html/humhub wget https://www.humhub.com/download/package/humhub-1.10.3.zip unzip humhub-1.10.3.zip mv humhub-1.10.3 humhub rm humhub-1.10.3.zip cd /var/www/html/humhub/humhub/
Let's make the folders readable.
chmod -R 755 /var/www/html/humhub/humhub/ chown -R apache:apache /var/www/html/humhub/humhub/ chcon -R -t httpd_sys_content_rw_t /var/www/html/humhub/humhub/
Create a new apache configuration file
dev.domainhere.info.conf for the domain with the following command:
Add the following codes:
<VirtualHost *:80> ServerName dev.domainhere.info ServerAlias dev.domainhere.info DocumentRoot /var/www/html/humhub/humhub/ <Directory /var/www/html/humhub/humhub/> Options -Indexes +FollowSymLinks AllowOverride All </Directory> ErrorLog /var/log/httpd/dev.domainhere.info-error.log CustomLog /var/log/httpd/dev.domainhere.info-access.log combined </VirtualHost>
Your Domain Name.
Now, press the
Esc key, and type
:wq! and press the
Enter key to save and exit the file.
Now, restart & check the apache with the following commands:
systemctl restart httpd systemctl status httpd
firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-service=https firewall-cmd --reload
Now open the URL from your browser, this will redirect you to configuring the final parts of the Humhub installation.
dev.domainhere.infowith the actual IP or domain configured on the server.
Input the Database details which was configured earlier. Follow the below steps:
Now you have successfully installed Humhub with LAMP Stack on Rocky Linux 8.