mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-16 15:57:00 +05:30
php-fpm: add setup script
This commit is contained in:
parent
00a424cb81
commit
c3678a1434
1 changed files with 12 additions and 0 deletions
12
php-fpm/setup.sh
Normal file
12
php-fpm/setup.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue