Zammad is an open-source, web-based helpdesk and customer support system that facilitates managing customer communications across various channels like email, chat, telephone, Twitter, and Facebook. This tutorial will guide you through the step-by-step process of installing and configuring Zammad on an Ubuntu 22.04 server.

📋 Prerequisites
Before you begin, ensure you have:
- A server running Ubuntu 22.04.
- A user with sudo privileges.
- A stable internet connection.
🔄 Step 1: Update the System
Start by updating your system packages to the latest versions:
sudo apt update -y
sudo apt upgrade -y
Reboot the system if necessary:
sudo reboot
☕ Step 2: Install Java JDK
Zammad requires Java for Elasticsearch. Install the default JDK:
sudo apt install default-jdk -y
Verify the installation:
java -version
🔍 Step 3: Install and Configure Elasticsearch
Zammad uses Elasticsearch for search functionality.
3.1 Install Dependencies
sudo apt install apt-transport-https gnupg -y
3.2 Add Elasticsearch GPG Key and Repository
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
3.3 Install Elasticsearch
sudo apt update -y
sudo apt install elasticsearch -y
3.4 Start and Enable Elasticsearch
sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch
3.5 Install Ingest Attachment Plugin
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
When prompted, type y to continue.
3.6 Configure Elasticsearch
Edit the Elasticsearch configuration file:
sudo nano /etc/elasticsearch/elasticsearch.yml
Add the following line at the end:
http.max_content_length: 400mb
Save and close the file. Restart Elasticsearch:
sudo systemctl restart elasticsearch
📦 Step 4: Install Zammad
4.1 Add Zammad GPG Key and Repository
curl -fsSL https://dl.packager.io/srv/zammad/zammad/key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/pkgr-zammad.gpg
echo "deb [signed-by=/etc/apt/trusted.gpg.d/pkgr-zammad.gpg] https://dl.packager.io/srv/deb/zammad/zammad/stable/ubuntu 22.04 main" | sudo tee /etc/apt/sources.list.d/zammad.list
4.2 Install Zammad
sudo apt update -y
sudo apt install zammad -y
⚙️ Step 5: Configure Zammad with Elasticsearch
Run the following commands to configure Zammad to work with Elasticsearch:
sudo zammad run rails r "Setting.set('es_url', 'http://localhost:9200')"
sudo zammad run rails r "Setting.set('es_user', 'elastic')"
sudo zammad run rake zammad:searchindex:rebuild
sudo zammad run rails r "Setting.set('es_index', Socket.gethostname.downcase + '_zammad')"
sudo zammad run rails r "Setting.set('es_attachment_ignore', [ '.png', '.jpg', '.jpeg', '.mpeg', '.mpg', '.mov', '.bin', '.exe', '.box', '.mbox' ])"
sudo zammad run rails r "Setting.set('es_attachment_max_size_in_mb', 50)"
🌐 Step 6: Configure Apache for Zammad
Zammad automatically creates an Apache configuration file. You may need to modify it:
sudo nano /etc/apache2/sites-available/zammad.conf
Locate and modify the following lines:
ServerName your-server-ip
Replace your-server-ip with your actual server IP or domain name.
Disable the default Apache site and restart Apache:
sudo a2dissite 000-default.conf
sudo systemctl restart apache2
🚀 Step 7: Start and Enable Zammad Services
Start and enable Zammad services:
sudo systemctl start zammad
sudo systemctl enable zammad
Verify the status:
sudo systemctl status zammad
🖥️ Step 8: Access Zammad Web Interface
Open your web browser and navigate to:
http://your-server-ip
Replace your-server-ip with your server’s actual IP address or domain name.
You should see the Zammad setup page. Click on “Set up a new system” and follow the on-screen instructions to create an administrator account and configure your organization settings.
✅ Conclusion
Congratulations! You’ve successfully installed and configured the Zammad Ticketing System on Ubuntu 22.04. You can now start managing customer communications efficiently through various channels.
Meta Description: Learn how to install and configure the Zammad Ticketing System on Ubuntu 22.04. This step-by-step guide covers prerequisites, installation, and setup procedures.
SEO Keywords: Zammad installation Ubuntu 22.04, configure Zammad helpdesk, Ubuntu ticketing system setup, install Zammad step-by-step
Hướng dẫn cài đặt Cluster Kafka trên Ubuntu
https://forum.congdonglinux.com









Add Comment