How to Install HumHub on Vultr?

10 minutes read

To install HumHub on Vultr, you can follow these steps:

  1. Log in to your Vultr account and create a new server instance. Choose a location, server plan, and select an operating system (preferably Ubuntu 18.04 or newer).
  2. Once the server is created, connect to it using SSH. You can use PuTTY (for Windows users) or the terminal (for Mac and Linux users).
  3. Update the server's package list by running the following command: sudo apt update
  4. Install required packages by running the following command: sudo apt install apache2 mysql-server php libapache2-mod-php php-cli php-mysql php-curl php-mbstring php-gd php-intl php-apcu
  5. During the MySQL installation, you will be prompted to set a password for the MySQL root user. Make sure to remember this password as you will need it later.
  6. Verify if Apache and MySQL services are running: sudo systemctl status apache2 sudo systemctl status mysql
  7. If both services are not running, start them using the following commands: sudo systemctl start apache2 sudo systemctl start mysql
  8. Create a MySQL database and user for HumHub. Login to the MySQL shell: sudo mysql
  9. Create a new database: CREATE DATABASE humhub;
  10. Create a new user and grant privileges to the database: CREATE USER 'humhub_user'@'localhost' IDENTIFIED BY 'your_password'; GRANT ALL PRIVILEGES ON humhub.* TO 'humhub_user'@'localhost'; FLUSH PRIVILEGES;
  11. Exit the MySQL shell: exit
  12. Download the latest version of HumHub from their official website or GitHub repository.
  13. Upload the downloaded ZIP file to your Vultr server using an FTP client like FileZilla or SCP command.
  14. Extract the ZIP file to your desired location. For example: sudo unzip ~/ -d /var/www/html
  15. Rename the extracted folder to humhub for simplicity: sudo mv /var/www/html/humhub-xx.xx.x /var/www/html/humhub
  16. Set the correct permissions to enable HumHub to write to its directories: sudo chown -R www-data:www-data /var/www/html/humhub sudo chmod -R 755 /var/www/html/humhub
  17. Configure the Apache virtual host by creating a new configuration file: sudo nano /etc/apache2/sites-available/humhub.conf
  18. Add the following content to the file: ServerName your_domain_or_IP_address DocumentRoot /var/www/html/humhub Options FollowSymLinks AllowOverride All Require all granted ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined
  19. Save and exit the file (Ctrl + O, Enter, Ctrl + X).
  20. Enable the new virtual host and disable the default one: sudo a2ensite humhub.conf sudo a2dissite 000-default.conf
  21. Restart Apache for the changes to take effect: sudo systemctl restart apache2
  22. Open a web browser and access your server's IP address or domain name. The HumHub installation page should now be displayed.
  23. Follow the on-screen instructions to complete the installation. It will involve setting up a database connection and creating an administrative account.

That's it! You have successfully installed HumHub on Vultr. You can now customize and configure HumHub according to your needs.

Best Cloud Hosting Providers of 2024


Rating is 5 out of 5



Rating is 4.9 out of 5



Rating is 4.8 out of 5



Rating is 4.6 out of 5


What is the recommended Vultr server size for HumHub installation?

The recommended Vultr server size for HumHub installation depends on several factors, such as the expected number of users and the expected usage patterns.

For small to medium-sized installations with up to 100 users, a Vultr server with 2GB RAM and 1 CPU core should be sufficient. For larger installations with more users or higher usage demands, you may want to consider a server with more resources, such as 4GB RAM and 2 CPU cores.

It's also important to ensure that the server has sufficient storage space for your installation, as well as a fast and reliable network connection. Additionally, consider enabling caching mechanisms and optimizing the server configuration to improve performance.

What is SSH and how to use it for HumHub installation on Vultr?

SSH, or Secure Shell, is a cryptographic network protocol used for secure remote access to a computer over an unsecured network. It provides a secure channel over an unsecured network by encrypting the connection between the client and the server.

To use SSH for HumHub installation on Vultr, follow these steps:

  1. Sign in to your Vultr account and navigate to the "Servers" section. Click on the "+" button to create a new server.
  2. Choose your preferred server location and server size. For HumHub, a server with at least 1GB RAM is recommended. Select the “Debian 10” operating system.
  3. Under the "Server hostname & label" section, enter a hostname for your server.
  4. Scroll down to the "Additional Features" section, and check the box next to "Enable IPv6".
  5. Click on the "Deploy Now" button to deploy your server. Once the server is deployed, note down the server IP address.
  6. Now, open your preferred SSH client. If you are using a Mac or Linux, you can open the terminal. If you are on Windows, you can use applications like PuTTY or Git Bash.
  7. In the terminal (or SSH client), type the following command to connect to your Vultr server using SSH: ssh root@your_server_ip Replace "your_server_ip" with the actual IP address of your Vultr server.
  8. You will be prompted to enter the root password for your server. Enter the password and press Enter. Note that the password won't be displayed as you type.
  9. Once you are connected to your server via SSH, you can proceed with the HumHub installation. Follow the official HumHub documentation for detailed instructions on how to install and configure HumHub on your server.

By using SSH for your HumHub installation, you have a secure connection to your Vultr server, allowing you to manage and configure your server remotely.

How to update HumHub to the latest version on Vultr?

To update HumHub to the latest version on Vultr, you can follow these steps:

  1. Access your Vultr server: Log in to your Vultr account and navigate to the "Servers" tab. Click on the server where HumHub is installed.
  2. Connect to your server: Use your preferred SSH client to connect to your Vultr server. You will need the IP address and SSH credentials for your server.
  3. Navigate to the HumHub installation directory: Once connected to your server, navigate to the HumHub installation directory. Usually, it is located in the /var/www/html directory. Use the cd command to change the directory, like this:
cd /var/www/html

  1. Backup your current HumHub installation: Create a backup of your existing HumHub installation and database in case anything goes wrong during the update process. You can use the following commands:
cp -r humhub humhub_backup
mysqldump -u your_database_user -p your_database_name > humhub_backup.sql

Make sure to replace your_database_user and your_database_name with the appropriate values for your installation.

  1. Download the latest version of HumHub: Go to the HumHub GitHub releases page ( and find the latest version. Copy the link to the ZIP file for that version.
  2. Download the ZIP file to your server: Use the wget command to download the ZIP file to your server. Run the command and paste the link you copied, like this:

Replace VERSION_NUMBER with the actual version number you want to install.

  1. Unzip the downloaded file: After the ZIP file is downloaded, unzip it using the following command:

Again, replace VERSION_NUMBER with the version you downloaded.

  1. Rename and replace the current HumHub installation: To replace the existing HumHub installation with the new version, rename the current directory and move the new version into place. Use these commands:
mv humhub humhub_old
mv humhub-VERSION_NUMBER humhub

Replace VERSION_NUMBER with the actual version number.

  1. Update the vendor packages: Navigate inside the humhub directory and execute the following commands to update and install the required vendor packages:
composer self-update
composer install --no-dev --optimize-autoloader

  1. Clean the cache: Clear the HumHub cache to ensure that the updated version is fully applied. Run the following command from the humhub directory:
php protected/yii cache/flush-all

  1. Update the database: Finally, update the HumHub database structure by running the following command:
php protected/yii migrate/up --includeModuleMigrations=1

  1. Restart the server: Restart your Vultr server to finalize the update. You can use the following command:

After the server restarts, HumHub should be updated to the latest version.

Note: It is always recommended to take a backup of your data before performing any updates or modifications to your server.

What is SMTP and how to configure it for HumHub on Vultr?

SMTP stands for Simple Mail Transfer Protocol, which is a communication protocol used for sending and receiving emails over the internet. It is commonly used by applications or services to send outgoing emails from a server.

To configure SMTP for HumHub on Vultr, you will need to follow these steps:

  1. Log in to your Vultr account and navigate to the "Servers" section.
  2. Select the server where your HumHub instance is installed.
  3. Install an SMTP server software on your server. Popular choices include Postfix, Exim, and Sendmail. You can use a package manager like apt or yum to install the desired SMTP server.
  4. Once the SMTP server is installed, you will need to configure it to listen for incoming emails and relay outgoing emails. The configuration process may vary depending on the software you chose. Generally, you need to modify the configuration file of the SMTP server software to set up the server's domain name, relay settings, and authentication if required.
  5. After configuring the SMTP server, you will need to update your HumHub configuration to use the newly installed SMTP server. Access the HumHub installation directory on your server and locate the .env file.
  6. Open the .env file using a text editor and find the following lines:
# Email transport hyper text protocol
# Leave empty if you don't want to use e-mail

  1. Set the MAILER_TRANSPORT value to smtp.
  2. Set the MAILER_HOST value to the hostname or IP address of your SMTP server.
  3. Set the MAILER_PORT value to the desired SMTP port (usually 25 or 587).
  4. If your SMTP server requires authentication, set the MAILER_USERNAME and MAILER_PASSWORD values to your SMTP username and password respectively. If not, you can leave them empty.
  5. Save the .env file and exit the text editor.
  6. Restart the HumHub application or web server to apply the changes.

Once configured, HumHub will use the SMTP server to send outgoing emails.

Note: Make sure your SMTP server is properly secured and configured to prevent abuse or unauthorized access.

Facebook Twitter LinkedIn Whatsapp Pocket

Related Posts:

To deploy Yii on Vultr, you can follow these steps:Sign up for a Vultr account: Go to the Vultr website ( and create an account if you don't have one already. Provide the necessary details and complete the registration process. Creat...
TYPO3 is a powerful and widely used content management system (CMS) that allows users to create and manage websites of all sizes. Vultr, on the other hand, is a cloud-based hosting provider that offers reliable and scalable infrastructure for deploying applica...
Deploying React.js on Vultr is a straightforward process that involves a few steps.Create a Vultr server: You will start by creating a new Vultr server. Choose a location, size, and operating system that suits your requirements. Connect to the server: Once the...