Skip to content

Instantly share code, notes, and snippets.

View jams008's full-sized avatar
🏠
Working from home

Jamaluddin fikri jams008

🏠
Working from home
View GitHub Profile
[www-php72]
user = nginx
group = nginx
listen = 127.0.0.1:9080
listen.owner = nginx
listen.group = nginx
pm = ondemand
pm.max_children = 30
pm.start_servers = 20
pm.min_spare_servers = 10
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Self signed certs generated by the ssl-cert package
## Error pages
error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 421 422 423 424 425 426 428 429 431 451 /40x.html;
location = /40x.html {
root /home/hipwee/public_html/hipwee.com/error;
internal;
}
error_page 500 501 502 503 504 505 506 507 508 510 511 /50x.html;
location = /50x.html {
root /home/hipwee/public_html/hipwee.com/error;
internal;
[www]
user = www-data
group = www-data
listen = 127.0.0.1:9091
listen.owner = www-data
listen.group = www-data
pm = ondemand
pm.max_children = 30
pm.start_servers = 20
pm.min_spare_servers = 10
UserParameter=fpm.start_time,/etc/zabbix/scripts/fpm.sh start_time
UserParameter=fpm.start_since,/etc/zabbix/scripts/fpm.sh start_since
UserParameter=fpm.accepted_conn,/etc/zabbix/scripts/fpm.sh accepted_conn
UserParameter=fpm.listen_queue,/etc/zabbix/scripts/fpm.sh listen_queue
UserParameter=fpm.max_listen_queue,/etc/zabbix/scripts/fpm.sh max_listen_queue
UserParameter=fpm.listen_queue_len,/etc/zabbix/scripts/fpm.sh listen_queue_len
UserParameter=fpm.active_processes,/etc/zabbix/scripts/fpm.sh active_processes
UserParameter=fpm.max_active_processes,/etc/zabbix/scripts/fpm.sh max_active_processes
UserParameter=fpm.idle_processes,/etc/zabbix/scripts/fpm.sh idle_processes
UserParameter=fpm.ping,/etc/zabbix/scripts/fpm.sh ping
#!/bin/sh
## DO NOT EDIT
## This file is under PUPPET control
#################################
### ###
### Script for get statistics ###
### from local php-fpm ###
### ###
[www]
user = www-data
group = www-data
listen = 127.0.0.1:9090
listen.owner = www-data
listen.group = www-data
pm = ondemand
pm.max_children = 30
pm.start_servers = 20
pm.min_spare_servers = 10
#!/bin/sh
# Do argument checks
if [ ! "$#" -ge 1 ]; then
echo "Usage: $0 {size}"
echo "Example: $0 4G"
echo "(Default path: /swapfile)"
echo "Optional path: Usage: $0 {size} {path}"
exit 1
fi
[www]
user = www-data
group = www-data
listen = 127.0.0.1:9080
listen.owner = www-data
listen.group = www-data
pm = ondemand
pm.max_children = 30
pm.start_servers = 20
pm.min_spare_servers = 10
[PHP]
engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17