-sudo adduser php5-lhc-stats www-"$site"
+sudo adduser lhc_stats__php5 www-"$site"
sudo adduser www-"$site"-tls www-"$site"
fastcgi_pass_header Set-Cookie;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/run/php5/fpm/lhc-stats;
+ fastcgi_pass unix:/run/php5/fpm/lhc_stats;
}
# vim: ft=sh
-sudo adduser php5-lhc-www www-"$site"
+sudo adduser lhc_www__php5 www-"$site"
sudo adduser www-"$site"-tls www-"$site"
fastcgi_pass_header Set-Cookie;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/run/php5/fpm/lhc-www;
+ fastcgi_pass unix:/run/php5/fpm/lhc_www;
}
# vim: ft=sh
+++ /dev/null
-pm.max_children = 15
-pm.max_requests = 200
-pm.max_spare_servers = 15
-pm.min_spare_servers = 2
-pm.process_idle_timeout = 60s
-pm.start_servers = 3
-request_slowlog_timeout = 5s
-request_terminate_timeout = 120s
-rlimit_core = unlimited
-rlimit_files = 131072
-security.limit_extensions = .php
+++ /dev/null
-pm.max_children = 15
-pm.max_requests = 200
-pm.max_spare_servers = 15
-pm.min_spare_servers = 2
-pm.process_idle_timeout = 60s
-pm.start_servers = 3
-request_slowlog_timeout = 5s
-request_terminate_timeout = 120s
-rlimit_core = unlimited
-rlimit_files = 131072
-security.limit_extensions = .php
--- /dev/null
+pm.max_children = 15
+pm.max_requests = 200
+pm.max_spare_servers = 15
+pm.min_spare_servers = 2
+pm.process_idle_timeout = 60s
+pm.start_servers = 3
+request_slowlog_timeout = 5s
+request_terminate_timeout = 120s
+rlimit_core = unlimited
+rlimit_files = 131072
+security.limit_extensions = .php
--- /dev/null
+pm.max_children = 15
+pm.max_requests = 200
+pm.max_spare_servers = 15
+pm.min_spare_servers = 2
+pm.process_idle_timeout = 60s
+pm.start_servers = 3
+request_slowlog_timeout = 5s
+request_terminate_timeout = 120s
+rlimit_core = unlimited
+rlimit_files = 131072
+security.limit_extensions = .php
END IF;
END;
//
- DROP PROCEDURE IF EXISTS mysql.show_user;
FLUSH PRIVILEGES;
EOF
-false ${@:+$(printf -- '-or -name %s.conf\n' "$@")} \
-printf '%f\n')
do pool=${pool%\.conf}
- rule adduser php5-"$pool" \
+ rule adduser "$pool"__php5 \
--disabled-login \
--disabled-password \
--group \
env[TEMP] = /tmp
env[TMPDIR] = /tmp
env[TMP] = /tmp
- group = php5-$pool
+ group = ${pool}__php5
#listen = 127.0.0.1:9000
listen = /run/php5/fpm/$pool
#listen.allowed_clients = 127.0.0.1
rlimit_core = unlimited
rlimit_files = 131072
slowlog = /home/www/log/php5/fpm/$pool/slow.log
- user = php5-$pool
+ user = ${pool}__php5
$(cat "$tool"/etc/php5/fpm/pool.d/"$conf")
EOF
sudo install -m 664 -o php5 -g php5 \