Skip to content

Commit

Permalink
adjust max PHP processes
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho committed Aug 30, 2017
1 parent d6af472 commit 8ec01b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lamp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ y
y
y
EOF

# adjust max PHP processes so Apps don't overload the board (#146)
sed -i 's|pm.max_children =.*|pm.max_children = 3|' /etc/php/7.0/fpm/pool.d/www.conf
}

configure() { :; }
Expand Down
11 changes: 11 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,17 @@ launch_script $1 &> /run/ncp.log
EOF
chmod 700 /home/www/ncp-launcher.sh

# adjust max PHP processes so Apps don't overload the board (#146)
sed -i 's|pm.max_children =.*|pm.max_children = 3|' /etc/php/7.0/fpm/pool.d/www.conf

# restart PHP
sleep 3
systemctl stop php7.0-fpm
systemctl stop mysqld
sleep 0.5
systemctl start php7.0-fpm
systemctl start mysqld

# License
#
# This script is free software; you can redistribute it and/or modify it
Expand Down

0 comments on commit 8ec01b3

Please sign in to comment.