下载 Caddy

$ wget https://dl.lamp.sh/files/caddy_linux_amd64
$ mv caddy_linux_amd64 caddy
$ chmod +x caddy

安装 PHP

$ apt install -y php7.3 php7.3-fpm php7.3-cli php7.3-sqlite3 php7.3-curl php7.3-gd php7.3-mbstring php7.3-xml

配置 PHP

$ nano /etc/php/7.3/fpm/pool.d/www.conf

取消以下相关配置项的注释

listen.owner = www-data
listen.group = www-data
listen.mode = 0660

设置 PHP 开机启动

$ systemctl start php7.3-fpm
$ systemctl enable php7.3-fpm

设置网站目录组和拥有者为 www-data

$ chown www-data:www-data -R /home/app/typecho/