In this tutorial, we will guide you through the installation process of Hubzilla on Debian Latest.
Before installing any software or package, it is recommended to update the system.
To update the system, run the following command in the terminal:
sudo apt-get update && sudo apt-get upgrade
Hubzilla requires several dependencies to be installed on the system. Run the following command to install the required dependencies:
sudo apt-get install apache2 php libapache2-mod-php php-curl php-gd php-mbstring php-xml php-zip php-mysql mariadb-server mariadb-client imagemagick git
MariaDB is used as a database for Hubzilla. Run the following command to install MariaDB:
sudo apt-get install mariadb-server mariadb-client
After the installation is complete, run the following command to secure the MariaDB installation:
sudo mysql_secure_installation
Answer the questions with “Y” and set a password for the root user.
Create a new database, user, and password for Hubzilla by running the following commands:
$ mysql -u root -p
Enter password:
MariaDB [(none)]> CREATE DATABASE hubzilla_db;
Query OK, 1 row affected (0.001 sec)
MariaDB [(none)]> CREATE USER 'hubzilla_user'@'localhost' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> GRANT ALL ON hubzilla_db.* TO 'hubzilla_user'@'localhost';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> EXIT;
Create a new directory for Hubzilla and clone the Hubzilla repository using the following commands:
$ cd /var/www/
$ sudo git clone https://framagit.org/hubzilla/core.git hubzilla
Set write permissions to the Apache user (www-data
) on the Hubzilla directory by running the following command:
sudo chown -R www-data:www-data /var/www/hubzilla
Create a new virtual host configuration file for Apache using the following command:
sudo nano /etc/apache2/sites-available/hubzilla.conf
Add the following lines to the virtual host configuration file:
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/hubzilla
ServerName example.com
<Directory /var/www/hubzilla/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/hubzilla_error.log
CustomLog /var/log/apache2/hubzilla_access.log combined
</VirtualHost>
Replace “example.com” with your domain name.
Enable the virtual host configuration by running the following command:
sudo a2ensite hubzilla.conf
Disable the default Apache virtual host by running the following command:
sudo a2dissite 000-default.conf
Restart the Apache web server to apply the changes:
sudo systemctl restart apache2
Open your web browser and navigate to your domain name.
Select your language and click on the “Start” button.
Enter the MySQL database details and click on the “Install” button.
Enter the site name and admin account details and click on the “Submit” button.
The Hubzilla installation is complete.
In this tutorial, we have explained the step-by-step process to install Hubzilla on Debian Latest. Following these instructions will allow you to get Hubzilla up and running on your server.
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!