Turn off nginx logs on install
This commit is contained in:
parent
c3fe06a66b
commit
0dbebd4c4f
|
@ -518,6 +518,10 @@ function install_web_server {
|
||||||
# install nginx
|
# install nginx
|
||||||
apt-get -yq install nginx php5-fpm git
|
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
|
# 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.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
|
#sed -i 's/;process_control_timeout =.*/process_control_timeout = 300/g' /etc/php5/fpm/php-fpm.conf
|
||||||
|
|
Loading…
Reference in New Issue