Skip to content

Instantly share code, notes, and snippets.

date.timezone = Asia/Ho_Chi_Minh
max_execution_time = 300
max_input_time = 300
short_open_tag = On
realpath_cache_size = 640k
realpath_cache_ttl = 86400
memory_limit = -1
upload_max_filesize = 16M
post_max_size = 16M
expose_php = Off
include=/etc/php/${VERSION}/fpm/pool.d/*.conf
[global]
events.mechanism = epoll
error_log = /var/log/php${VERSION}-fpm/error.log
log_level = warning
emergency_restart_threshold = 10
emergency_restart_interval = 30s
process_control_timeout = 10s
daemonize = yes
[www]
listen = /var/run/php${VERSION}-fpm.sock
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
user = www-data
group = www-data
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
pm = dynamic
[mysqld]
skip_name_resolve
user = mysql
pid_file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
default_storage_engine = InnoDB
tmpdir = /tmp
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
#
# See the examples of server my.cnf files in /usr/share/mysql/
#
# this is read by the standalone daemon and embedded servers
[server]
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2.0,
# as published by the Free Software Foundation.
#
# This program is also distributed with certain software (including
# but not limited to OpenSSL) that is licensed under separate terms,
# as designated in a particular file or component or in included license
# documentation. The authors of MySQL hereby grant you an additional
user www-data;
worker_processes auto;
worker_cpu_affinity auto;
worker_rlimit_nofile 131072;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 2048;