🍄Common Packages

Caddy

caddyserver.com/docs/install

apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
apt update
apt install caddy

Caddy setup for PHP

apt install -y nginx-full && apt purge -y nginx-full && apt autoremove -y && rm -rf /etc/nginx /var/lib/nginx/ /var/log/nginx/
:8080 {
        encode zstd gzip
        root * /var/www/<app>/public/
        php_fastcgi unix//run/php/php8.3-fpm.sock
        file_server
}

PHP

deb.sury.org

apt-get update
apt-get -y install lsb-release ca-certificates curl
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
apt-get update