Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PHP config
# TODO: Use calculation to set these sizes
sed -r -i 's/^;?pm ?=.*$/pm = dynamic/' /etc/php/7.2/fpm/pool.d/www.conf
sed -r -i 's/^;?pm.max_children ?=.*$/pm.max_children = 25/' /etc/php/7.2/fpm/pool.d/www.conf
sed -r -i 's/^;?pm.start_servers ?=.*$/pm.start_servers = 10/' /etc/php/7.2/fpm/pool.d/www.conf
sed -r -i 's/^;?pm.min_spare_servers ?=.*$/pm.min_spare_servers = 5/' /etc/php/7.2/fpm/pool.d/www.conf
sed -r -i 's/^;?pm.max_spare_servers ?=.*$/pm.max_spare_servers = 20/' /etc/php/7.2/fpm/pool.d/www.conf
sed -r -i 's/^;?pm.max_requests ?=.*$/pm.max_requests = 500/' /etc/php/7.2/fpm/pool.d/www.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.