Skip to content

Instantly share code, notes, and snippets.

@hluker
Last active January 16, 2023 03:46
Show Gist options
  • Select an option

  • Save hluker/99b5e8fadfc094830603fef36b60e728 to your computer and use it in GitHub Desktop.

Select an option

Save hluker/99b5e8fadfc094830603fef36b60e728 to your computer and use it in GitHub Desktop.
php-fpm good good
useradd -M user
usermod -L -s /bin/false user
usermod -aG user www-data
chown -R user:user /var/www/example.com/public_html/
chmod -R u=rwX,g=rX,o= /var/www/example.com/public_html/ 
chmod -R 400 wp-config.php
sudo cp /etc/php/8.0/fpm/pool.d/www.conf /etc/php/8.0/fpm/pool.d/example.com.conf

[example]
user = user
group = user
listen = /run/php/php8.0-fpm-example.sock

edit other parameters as needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment