php-fpm: add setup script

This commit is contained in:
Harsh Shandilya 2022-10-11 12:54:43 +05:30
parent 00a424cb81
commit c3678a1434
No known key found for this signature in database
1 changed files with 12 additions and 0 deletions

12
php-fpm/setup.sh Normal file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euxo pipefail
sudo apt install -y php8.1-fpm
sudo systemctl stop php8.1-fpm.service
sudo cp ./www.conf /etc/php/8.1/fpm/pool.d/www.conf
adduser --disabled-password --gecos "" caddy
addgroup web
adduser caddy web
adduser msfjarvis web
sudo systemctl start php8.1-fpm.service