Skip to main content

Posts

Showing posts from May, 2023

Some notes about caddy webserver installation on Linux

  caddy https://caddyserver.com/docs/install#debian-ubuntu-raspbian sudo apt update sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo tee /etc/apt/trusted.gpg.d/caddy-stable.asc curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list sudo apt update sudo apt install caddy # the code sits in /var/www # create link to the local directory ln -s /var/www/ /home/xxx/myprojects/web # set the user to be xxx and the group caddy sudo chown -R xxx:caddy ./www   # add us to caddy groups sudo usermod -a -G caddy xxx sudo usermod -a -G www-data xxx Install php-fpm sudo apt install php-cli php-fpm php-mysql php-mbstring php-curl https://www.howtoforge.com/tutorial/ubuntu-caddy-web-server-installation/ configure caddy with php sudo nano /etc/php/8.1/fpm/pool.d/ www.conf #change users to caddy (user, group, listen.ow