#apache2
find /etc/apache2/sites-available -type f -exec sed -i 's/ErrorLog/#ErrorLog/g' {} \;
find /etc/apache2/sites-available -type f -exec sed -i 's/LogLevel/#LogLevel/g' {} \;
find /etc/apache2/sites-available -type f -exec sed -i 's/CustomLog/#CustomLog/g' {} \;
#nginx
find /etc/nginx/sites-available/ -type f -exec sed -i 's/access_log/#access_log/g' {} \;
#mysql
find /etc/mysql/my.cnf -type f -exec sed -i 's/general_log_file/#general_log_file/g' {} \;
find /etc/mysql/my.cnf -type f -exec sed -i 's/general_log/#general_log/g' {} \;
find /etc/mysql/my.cnf -type f -exec sed -i 's/log_slow_queries/#log_slow_queries/g' {} \;
find /etc/mysql/my.cnf -type f -exec sed -i 's/long_query_time/#long_query_time/g' {} \;