Apache Kafka is an open-source distributed event streaming platform used for building real-time data pipelines and applications. Originally developed by LinkedIn and now part of the Apache Software Foundation, Kafka is designed for high-throughput, low-latency, and fault-tolerant data processing across systems.
In this tutorial, we will show you the complete steps to install Apache Kafka on Ubuntu 24.04 OS.
Step 1: Update Operating System
Update your Debian 12 operating system to make sure all existing packages are up to date:
# apt update && apt upgrade
Step 2: Install Java (OpenJDK) on Ubuntu 24.04
Java packages are available on Ubuntu 24.04 repositories and you can install it with the following command:
# apt install default-jdk
Check Java version after installation:
# java -version
openjdk version "21.0.6" 2025-01-21
OpenJDK Runtime Environment (build 21.0.6+7-Ubuntu-124.04.1)
OpenJDK 64-Bit Server VM (build 21.0.6+7-Ubuntu-124.04.1, mixed mode, sharing)
The Kafka comes with a command-line client that will take input from a file or from standard input and send it out as events to the Kafka cluster.
By default, each line you enter will result in a separate event being written to the topic.
# bin/kafka-console-producer.sh --topic my-events --bootstrap-server localhost:9092
>Hello World!
>This is my first topic
You can stop the consumer client with Ctrl-C at any time.
If you also want to delete any data of your local Kafka environment including any events you have created along the way, run the command:
# rm -rf /tmp/kafka-logs /tmp/kraft-combined-logs
Comments and Conclusion
That’s it! You have now installed and started Apache Kafka on your Ubuntu 24.04 system.
Remember that this guide assumes you have administrative privileges on your system.
Always check the official Apache Kafka documentation for the most up-to-date installation instructions and any specific considerations related to your system configuration.
If you have any questions please leave a comment below.
Magento is an open-source e-commerce platform that provides online merchants with a flexible shopping cart system, as well as control over the look, content, and functionality of their online stores. It also has a large community of developers and users who contribute to its ongoing development and provide support through forums, documentation, and other resources.
Magento comes in two main editions: Magento Open Source (formerly known as Magento Community Edition) and Magento Commerce (formerly known as Magento Enterprise Edition). The Open Source edition is free to use and provides basic e-commerce functionality, while the Commerce edition is a paid version that includes more advanced features such as customer segmentation, targeted promotions, and advanced marketing tools.
In this tutorial we will show you how to install the Open Source version of Magento 2.4.7 on Ubuntu 24.04 OS.
Before starting the installation, you can check the system requirement for installing Magento 2.4.7.
Step 1: Update Operating System
Update your Ubuntu 24.04 operating system to make sure all existing packages are up to date:
# apt update && apt upgrade
Step 2: Install Apache web server
To install Apache web server, run the following command:
# apt install apache2
You can start the Apache service and configure it to run on startup by entering the following commands:
Magento 2.4.7 comes with support for the latest PHP 8.3, while PHP 8.2 remains fully supported. By default, PHP 8.3 is included in the Ubuntu 24.04 default repository.
You can install PHP 8.3 and required PHP extensions using the following command:
After that, you should restart the Apache web server for the configuration to take effect:
# systemctl restart apache2
Step 4: Install MySQL and create a database
You can install the MySQL server with the following command:
# apt install mysql-server
Verify the status of the MySQL service using systemctl status command:
# systemctl status mysql
Output:
● mysql.service - MySQL Community Server
Loaded: loaded (/usr/lib/systemd/system/mysql.service; enabled; preset: enabled)
Active: active (running)
Process: 2907 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 2919 (mysqld)
Status: "Server is operational"
Tasks: 37 (limit: 2130)
Memory: 362.8M (peak: 379.2M)
CPU: 1.737s
CGroup: /system.slice/mysql.service
└─2919 /usr/sbin/mysqld
By default, MySQL is not hardened. You can secure MySQL using the mysql_secure_installation script:
# mysql_secure_installation
Configure it like this:
- Set root password? [Y/n] Y
- Remove anonymous users? [Y/n] Y
- Disallow root login remotely? [Y/n] Y
- Remove test database and access to it? [Y/n] Y
- Reload privilege tables now? [Y/n] Y
Now run the command below to log in to the MySQL shell.
# mysql -u root -p
Once you are logged in to your database server to create a database, database user, and grant all privileges to the database user run the following commands:
mysql> CREATE DATABASE magentodb;
mysql> CREATE USER 'magentouser'@'localhost' IDENTIFIED BY 'Str0ngPa$$w0rd';
mysql> GRANT ALL ON magentodb.* TO 'magentouser'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> EXIT
Step 5: Installing Elasticsearch
Starting Magento 2.4, all installations must be configured to use Elasticsearch as the catalog search engine.
Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. It’s widely used in various fields such as data science, machine learning, scientific computing, and education.
The term “Jupyter” is derived from the combination of three programming languages: Julia, Python, and R. These were the first languages supported by the Jupyter project, but now it supports many other programming languages through its interactive computing protocol.
In this tutorial, we will show you how to install Jupyter Notebook on Debian 12 OS with Apache web server
Step 1: Update Operating System
Update your Debian 12 operating system to the latest version with the following command:
# apt update && apt upgrade -y
Step 2: Install Pip on Debian 12
Python comes already installed by default on Debian 12. You can verify it by checking its version:
# python3 -V
Output:
Python 3.11.2
If it doesn’t, install Python with the following command:
# apt install python3
Then use the following command to install pip and venv on Debian 12:
# apt install python3-venv python3-pip
Verify your pip installation by checking its version:
# pip3 --version
Output:
pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11)
Step 3: Install Jupyter Notebook Using Virtualenv
First, create a directory and switch to it with the commands below:
# mkdir /var/www/notebook
# cd /var/www/notebook
Before you install Jupyter Notebook, you first need to create a Python virtual environment.
# python3 -m venv notebook_env
Next, activate the virtual environment with the following command:
# source notebook_env/bin/activate
Next, install Jupyter Notebook using the following command:
(notebook_env) # pip install jupyter
Once the installation is completed, run the Jupyter Notebook with the following command:
(notebook_env) # jupyter notebook --allow-root
Press the CTRL+C to stop the Jupyter Notebook.
Step 4: Generate Jupyter Notebook Password
First, generate a Jupyter Notebook configuration file with the following command:
Dolibarr ERP is an open-source software suite designed to help businesses and organizations manage various aspects of their operations. It provides modules for a wide range of business functions, making it a comprehensive solution for small and medium-sized enterprises (SMEs). Dolibarr is written in PHP and is often used as a web application, making it accessible from different devices with a web browser.
Dolibarr ERP is suitable for a variety of businesses, particularly those in the SME sector. It provides a cost-effective solution for managing key business processes and can be adapted to different industries and sectors. As an open-source solution, it offers flexibility and the ability to tailor the system to specific organizational needs.
In this tutorial, we will show you how to install Dolibarr ERP on Debian 12 OS.
Step 1: Update Operating System
Update your Debian 12 operating system to the latest version with the following command:
# apt update && apt upgrade
Also, install necessary packages.
# apt install curl nano wget unzip zip
Step 2: Install Apache webserver
You can install it via apt package manager by executing the following command.
# apt install apache2
Verify the status of the Apache service using systemctl status command:
Now run the command below to log in to the MariaDB shell.
# mysql -u root
Once you are logged in to your database server you need to create a database for the Dolibarr installation:
MariaDB [(none)]> CREATE DATABASE dolibarr;
MariaDB [(none)]> CREATE USER 'dolibarr'@'localhost' IDENTIFIED BY 'Str0ngPassw0rd';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON dolibarr. * TO 'dolibarr'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
Step 5: Download Dolibarr
The latest version of Dolibarr is available to download from GitHub. You can download it with the following command:
Odoo is an open-source suite of integrated business applications that includes various modules for different business needs. Odoo is developed using the Python programming language and follows a modular architecture, allowing users to select and deploy the specific modules that suit their business requirements.
The system is highly customizable, and it covers a wide range of business functions. It provides a comprehensive set of tools to manage various aspects of a business, from sales and finance to human resources and inventory management.
In this tutorial, we will show you how to configure Odoo with Apache 2 as Reverse Proxy on Debian 12 OS.
If the SSL certificate is successfully obtained, certbot displays a message to show the configuration was successful:
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/your-domain.com.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/your-domain.com/privkey.pem
Your cert will expire on 2024-03-02. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew *all* of your certificates, run
"certbot renew"
- Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
Now, you have successfully installed SSL on your website.
Step 6: Odoo Proxy Configuration
Make sure that Odoo is configured to work behind a proxy. In the Odoo configuration file (/etc/odoo.conf), you need to set the proxy_mode parameter to True:
proxy_mode = True
After making the changes, it’s important to restart the Odoo service to ensure the changes take effect:
# systemctl restart odoo
Step 7: Access Odoo server
Open your web browser and type the URL https://your-domain.com. You should see the following page:
Comments and Conclusion
Congratulations! You have successfully configured Odoo with Apache 2 as Reverse Proxy on your Debian 12 OS.
MediaWiki is a free and open-source wiki software platform used to power various wikis, including the most well-known one, Wikipedia.
MediaWiki is written in PHP and uses a backend database (usually MySQL or MariaDB) to store the content. It provides a powerful platform for creating collaborative websites, knowledge bases, documentation systems, and more.
In this tutorial, we will show you how to install MediaWiki on Debian 12 OS.
Step 1: Update Operating System
Update your Debian 12 operating system to the latest version with the following command:
# apt update && apt upgrade
Also, install necessary packages.
# apt install curl nano wget unzip zip
Step 2: Install Apache webserver
You can install it via apt package manager by executing the following command.
# apt install apache2
Verify the status of the Apache service using systemctl status command:
Now run the command below to log in to the MariaDB shell.
# mysql -u root
Once you are logged in to your database server you need to create a database for the MediaWiki installation:
MariaDB [(none)]> CREATE DATABASE mediawikidb;
MariaDB [(none)]> CREATE USER 'mediawikiuser'@'localhost' IDENTIFIED BY 'Str0ngPassw0rd';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON mediawikidb. * TO 'mediawikiuser'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
<VirtualHost *:80>
ServerAdmin admin@your-domain.com
DocumentRoot /var/www/mediawiki/
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/mediawiki/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log
CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined
</VirtualHost>
Remember to replace your-domain.com with the domain name of your server.
Save and exit the configuration file.
To enable this site run the command:
# /usr/sbin/a2ensite mediawiki.conf
To implement the changes, restart Apache webserver:
# systemctl restart apache2
Step 8: Access MediaWiki Web Interface
To complete the setup go to your browser and visit http://your-domain.com.
Start the setup clicking on the link to “set up the wiki”.
Choose language and click on the Continue button.
If everything is OK, you will get the message “The environment has been checked. You can install MediaWiki”. Click “Continue” to advance to the next step.
Add the database information such as the Database name, username, and password that you have created in the previous step.
Click on the Continue button.
Provide your website name, admin username, password and click on the Continue button.
Click on the “Continue” button.
Click on the “Continue” button. and the system will generate a “LocalSettings.php” that contains all the configuration you have done.
Copy the file to the /var/www//mediawiki directory. Then, set the correct ownership using the following command:
SuiteCRM is a free and open-source Customer Relationship Management (CRM) platform that is designed to help businesses to manage their customer relationships, sales, marketing, and customer support activities.
It is a popular choice for organizations looking for a cost-effective CRM solution with extensive customization options.
In this tutorial, we will show you how to install SuiteCRM on Debian 12.
Step 1: Update Operating System
The first step is to ensure that your system is up-to-date. You can do this by running the following command:
# apt update && apt upgrade
Step 2: Install Apache Web Server
To install Apache, run the following command:
# apt install apache2
You can start the Apache service and configure it to run on startup by entering the following commands:
By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script.
# mysql_secure_installation
Configure it like this:
- Set root password? [Y/n] Y
- Remove anonymous users? [Y/n] Y
- Disallow root login remotely? [Y/n] Y
- Remove test database and access to it? [Y/n] Y
- Reload privilege tables now? [Y/n] Y
Now run the command below to log in to the MariaDB shell.
# mysql -u root -p
Once you are logged in to your database server you need to create a database for the SuiteCRM installation:
MariaDB [(none)]> CREATE DATABASE suitecrm;
MariaDB [(none)]> CREATE USER 'suitecrm'@'localhost' IDENTIFIED BY 'Str0ng-Passw0rd';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON suitecrm.* TO 'suitecrm'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
Step 5: Download SuiteCRM
Download the latest stable version of SuiteCRM from the SuiteCRM website using the following command:
AWStats (Advanced Web Statistics) is an open-source web analytics tool that analyzes and generates comprehensive reports about web server log files. It provides detailed information about various aspects of web traffic and visitor behavior on a website.
It’s important to note that AWStats relies on server log files, so it may not provide real-time data and requires proper configuration to work effectively.
In this tutorial, we will show you how to install AWStats on Debian 12 OS.
Step 1: Update Operating System
Update your Debian 12 operating system to the latest version with the following command:
# apt update && apt upgrade
Step 2: Install Apache webserver
You can install it via apt package manager by executing the following command.
# apt install apache2
Verify the status of the Apache service using systemctl status command:
To implement the changes, restart Apache webserver:
# systemctl restart apache2
To implement the changes, restart Apache webserver:
# systemctl restart apache2
You can see how the installation is progressing by pointing your web browser to:
# http://your-domain.com/cgi-bin/awstats.pl
The top line displays the time when statistics were updated. It probably reads ‘Never updated’. It is all right, you just have to manually run the first update.
After it is done, if it is successful, with no errors, you should get some output like:
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.8 (build 20200416)
From data in log file "/var/log/apache2/access.log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 4258
Found 0 dropped records,
Found 0 comments,
Found 0 blank records,
Found 0 corrupted records,
Found 0 old records,
Found 4258 new qualified records.
Step 6: Secure Your AWStats via .htaccess
A basic, simple way of restricting access is to set up a http password. Open your apache2 configuration file