Skip to main content


Showing posts from May, 2023

Some notes about caddy webserver installation on Linux

  caddy sudo apt update sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl -1sLf '' | sudo tee /etc/apt/trusted.gpg.d/caddy-stable.asc curl -1sLf '' | 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 configure caddy with php sudo nano /etc/php/8.1/fpm/pool.d/ www.conf #change users to caddy (user, group, listen.ow