sharulhafiz
Basic Pleskian
ah, yours should be mark as best answer, I didn't look to the bottom, my wrong. thanks Mr wolfThat's because you didn't follow my advice to make this a cronjob
ln -s /usr/local/sbin/mod_php_ini /etc/cron.hourly/
chmod +x /usr/local/sbin/mod_php_ini
cat /usr/local/sbin/mod_php_ini
Code:#!/bin/bash MODIFIED= [ -d /etc/php ] && find /etc/php/ -type f -name "*.conf" -exec grep -il "pm.max_children = 5$" {} \; | xargs sed -i "s/pm.max_children = 5$/pm.max_children = 50/g" 2>/dev/null && MODIFIED=true [ -d /etc/php5 ] && find /etc/php5/ -type f -name "*.conf" -exec grep -il "pm.max_children = 5$" {} \; | xargs sed -i "s/pm.max_children = 5$/pm.max_children = 50/g" 2>/dev/null && MODIFIED=true find /opt/plesk/php/ -type f -name "*.conf" -exec grep -il "pm.max_children = 5$" {} \; | xargs sed -i "s/pm.max_children = 5$/pm.max_children = 50/g" 2>/dev/null && MODIFIED=true if [ ${MODIFIED} ] ; then /etc/init.d/plesk-php71-fpm restart /etc/init.d/plesk-php70-fpm restart /etc/init.d/plesk-php56-fpm restart fi