Skip to content
Client Panel

Install Caddy on Rocky Linux 8.x

Alternative Web Server besides Apache and Nginx. Installation on Rocky Linux 8.x

You can connect to the server via SSH or console.

Terminal window
ssh [username]@[ip_server] -p [ssh_port]

Update the system

Terminal window
sudo dnf update

Add caddy repository

Terminal window
sudo dnf install 'dnf-command(copr)'
sudo dnf copr enable @caddy/caddy

Install Caddy

Terminal window
sudo dnf install caddy

Check Caddy Version

Terminal window
caddy version

Sample Output of Caddy version

Caddy Version Output

Terminal window
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
Terminal window
sudo firewall-cmd --reload
Terminal window
sudo systemctl enable --now caddy
sudo systemctl start caddy
sudo systemctl status caddy

Sample Output of Service status. Caddy Status Service Output

Open http://localhost or http://your-server-ip to access the sample page.

Output of Caddy sample page. Caddy Sample Page