Skip to content

Instantly share code, notes, and snippets.

@2hamed
Created April 12, 2019 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2hamed/45549ffad4d696f787131f7ea122544e to your computer and use it in GitHub Desktop.
Save 2hamed/45549ffad4d696f787131f7ea122544e to your computer and use it in GitHub Desktop.
RUN sed -i 's/pm.max_children = 5/pm.max_children = 10/g' /etc/php/7.2/fpm/pool.d/www.conf && \
sed -i 's/pm.start_servers = 2/pm.start_servers = 4/g' /etc/php/7.2/fpm/pool.d/www.conf && \
sed -i 's/pm.min_spare_servers = 1/pm.min_spare_servers = 3/g' /etc/php/7.2/fpm/pool.d/www.conf && \
sed -i 's/pm.max_spare_servers = 3/pm.max_spare_servers = 5/g' /etc/php/7.2/fpm/pool.d/www.conf && \
sed -i 's/;pm.max_requests = 500/pm.max_requests = 500/g' /etc/php/7.2/fpm/pool.d/www.conf && \
sed -i 's|listen = /run/php/php7.2-fpm.sock|listen = "9000"|g' /etc/php/7.2/fpm/pool.d/www.conf && \
sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 500M/g' /etc/php/7.2/fpm/php.ini && \
sed -i 's/post_max_size = 8M/post_max_size = 500M/g' /etc/php/7.2/fpm/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment