diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index e8d76622..a5f49a46 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -518,6 +518,10 @@ function install_web_server { # install nginx apt-get -yq install nginx php5-fpm git + # Turn off logs by default + sed -i 's|access_log.*|access_log = /dev/null;|g' /etc/nginx/nginx.conf + sed -i 's|error_log.*|error_log = /dev/null;|g' /etc/nginx/nginx.conf + # limit the number of php processes sed -i 's/; process.max =.*/process.max = 32/g' /etc/php5/fpm/php-fpm.conf #sed -i 's/;process_control_timeout =.*/process_control_timeout = 300/g' /etc/php5/fpm/php-fpm.conf