Install with Package Manager¶
Tip
Are you tired of complex setup, configuration, backup and update tasks? Let us handle this stuff for you! 🚀
The easiest and often most cost-effective way to operate Zammad is our cloud service. Give it a try with a free trial instance!
Prerequisites¶
Before performing the following steps, make sure to meet Zammad’s software requirements.
1. Install Required Tools¶
In addition to already mentioned software dependencies, some operating systems may require additional packages if not already installed.
$ sudo apt install curl apt-transport-https gnupg
$ sudo apt install curl apt-transport-https gnupg
OpenSUSE doesn’t require any additional steps here!
SLES 15 requires additional repositories to be activated. To do so, run the following commands.
$ sudo SUSEConnect --product sle-module-desktop-applications/$(. /etc/os-release; echo $VERSION_ID)/$(uname -i)
$ sudo SUSEConnect --product PackageHub/$(. /etc/os-release; echo $VERSION_ID)/$(uname -i)
$ sudo dnf install curl epel-release
2. Install Elasticsearch¶
Elasticsearch is not a hard dependency of Zammad, but strongly recommended! It needs to be installed before Zammad. Read on in the Elasticsearch section first and continue with the next step after you finished the installation of it.
3. Ensure Correct Locale¶
To make Zammad work correctly, your system has to use the correct locales.
List your current locale settings:
$ locale | grep "LANG="
If above does not return <lang_code>.utf8
you can correct this issue as follows:
$ sudo apt install locales
$ sudo locale-gen en_US.UTF-8
$ echo "LANG=en_US.UTF-8" | sudo tee /etc/default/locale
After fixing it, make sure to check the output again for including
<lang_code>.utf8. A reboot may help if unsuccessful.
List your current locale settings:
$ locale | grep "LANG="
If above does not return <lang_code>.utf8
you can correct this issue as follows:
$ sudo apt install locales
$ sudo locale-gen en_US.UTF-8
$ echo "LANG=en_US.UTF-8" | sudo tee /etc/default/locale
After fixing it, make sure to check the output again for including
<lang_code>.utf8. A reboot may help if unsuccessful.
List your current locale settings:
$ localectl status | grep LANG
If above does not return <lang_code>.utf8
you can correct this issue as follows:
$ sudo localectl set-locale LANG=en_US.UTF-8
After fixing it, make sure to check the output again for including
<lang_code>.utf8. A reboot may help if unsuccessful.
Hint
By default OpenSUSE uses POSIX as LANG value for the root
user. Learn more about this within the OpenSUSE documentation.
This does not affect other users and thus can be ignored.
List your current locale settings:
$ locale | grep "LANG="
If above does not return <lang_code>.utf8
you can correct this issue as follows:
$ sudo localectl set-locale LANG=en_US.UTF-8
After fixing it, make sure to check the output again for including
<lang_code>.utf8. A reboot may help if unsuccessful.
Add Repository and Install Zammad¶
Hint
Packager.io may not be accessible from IPv6-only environments, so make sure to consider this when performing the steps below.
Add Repository¶
- Add repository key
$ sudo curl -fsSL "https://go.packager.io/srv/deb/zammad/zammad/gpg-key.gpg" \ -o /usr/share/keyrings/zammad.gpg && sudo chmod 644 /usr/share/keyrings/zammad.gpg
- Add repository (Ubuntu 22.04)
$ sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/ubuntu/22.04.list" \ -o /etc/apt/sources.list.d/zammad.list
- Add repository (Ubuntu 24.04)
$ sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/ubuntu/24.04.list" \ -o /etc/apt/sources.list.d/zammad.list
- Add repository key
$ sudo curl -fsSL "https://go.packager.io/srv/deb/zammad/zammad/gpg-key.gpg" \ -o /usr/share/keyrings/zammad.gpg && sudo chmod 644 /usr/share/keyrings/zammad.gpg
- Add repository (Debian 11)
$ sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/debian/11.list" \ -o /etc/apt/sources.list.d/zammad.list
- Add repository (Debian 12)
$ sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/debian/12.list" \ -o /etc/apt/sources.list.d/zammad.list
- Add repository (Debian 13)
$ sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/debian/13.list" \ -o /etc/apt/sources.list.d/zammad.list
$ sudo curl -o /etc/zypp/repos.d/zammad.repo \
"https://go.packager.io/srv/zammad/zammad/stable/installer/sles/15.repo"
- Add repository key
$ sudo rpm --import https://go.packager.io/srv/rpm/zammad/zammad/gpg-key.asc
- Add repository
$ sudo curl -fsSL "https://go.packager.io/srv/zammad/zammad/stable/installer/el/9.repo" \ -o /etc/yum.repos.d/zammad.repo
Install Zammad¶
$ sudo apt update
$ sudo apt install zammad
$ sudo apt update
$ sudo apt install zammad
$ sudo zypper refresh
$ sudo zypper install zammad
$ sudo dnf update
$ sudo dnf install zammad
Firewall & SELinux¶
Some parts of these steps may not apply to you, feel free to skip them!
SELinux¶
Note
The commands below only work on Ubuntu, Debian and CentOS. If you use a different distribution, please have a look at their documentation.
Allow Nginx or Apache to access public files of Zammad and communicate:
$ sudo chcon -Rv --type=httpd_sys_content_t /opt/zammad/public/
$ sudo setsebool httpd_can_network_connect on -P
$ sudo semanage fcontext -a -t httpd_sys_content_t /opt/zammad/public/
$ sudo restorecon -Rv /opt/zammad/public/
$ sudo chmod -R a+r /opt/zammad/public/
Firewall¶
Ensure to open ports 80 and 443 (TCP & UDP) beside of the ports you
need. Below you can find a few examples for different distributions.
If you are using a different distribution, please have a look at their
documentation.
Please note that the examples below only cover the distribution’s default firewall. It may not cover your case.
Open Port 80 and 443 on your Firewall:
$ sudo ufw allow 80
$ sudo ufw allow 443
$ sudo ufw reload
Warning
We’re covering nftables in this part - iptables is discouraged
starting from Debian 10 (Buster).
Our example uses the input chain, yours may be a different one!
Add the following lines to /etc/nftables.conf or your specific rule
file. Ensure to add these lines to your input-chain.
Open Port 80 and 443 for Zammad:
$ sudo tcp dport { http, https } accept
$ sudo udp dport { http, https } accept
The result should look like the following. Keep in mind that your environment could require different / more rules.
#!/usr/local/sbin/nft -f
flush ruleset
table inet filter {
chain input {
type filter hook input priority 0; policy drop;
ct state established,related accept
tcp dport ssh log accept
tcp dport { http, https } accept
udp dport { http, https } accept
}
chain forward {
type filter hook forward priority 0; policy accept;
}
chain output {
type filter hook output priority 0; policy accept;
}
}
To load your new rules, simply run sudo systemctl reload nftables.
Open Port 80 and 443 on your Firewall:
$ sudo firewall-cmd --zone=public --add-service=http --permanent
$ sudo firewall-cmd --zone=public --add-service=https --permanent
$ sudo firewall-cmd --reload
Open Port 80 and 443 on your Firewall:
$ sudo firewall-cmd --zone=public --add-service=http --permanent
$ sudo firewall-cmd --zone=public --add-service=https --permanent
$ sudo firewall-cmd --reload
Manage Services of Zammad¶
Zammad uses three services. These services can be managed individually or all at once by using the parent zammad.
zammad: includes the services below
zammad-web: internal puma server (relevant for displaying the web app)
zammad-worker: background worker - relevant for all delayed- and background jobs
zammad-websocket: websocket server for session related information
Manage the services with systemctl’s commands start, restart,
stop, status. Example to start Zammad with all sub-services:
$ sudo systemctl start zammad
To stop or restart a service or to check its status, adjust the command as mentioned above.
Next Steps¶
With this Zammad technically is ready to go. However, you’ll need to follow the following further steps to access Zammad’s Web-UI and getting started with it.
You may also find Zammad’s Console commands useful
If you expect usage with 5 agents or more you may also want to consider the following pages.