Skip to content

Instantly share code, notes, and snippets.

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

Ashish Dung Dung ashishdungdung

🏠
Working from home
View GitHub Profile
@ashishdungdung
ashishdungdung / my.cnf
Created March 19, 2018 02:01
MYSQL Configuration
# MariaDB database server configuration file.
#
# You can copy this file to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
[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 = 200
pm.start_servers = 20
pm.min_spare_servers = 10
@ashishdungdung
ashishdungdung / php.ini
Created March 17, 2018 21:54
PHP Configuration for High Resource Server
[PHP]
; Example Server 32GB RAM 16 Cores
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
@ashishdungdung
ashishdungdung / nginx.conf
Last active March 17, 2018 17:02
Configuring NGINX for Maximum Throughput Under High Concurrency for EasyEngine with AWS c5.4xlarge Instance
## AWS c5.4xlarge instance c5.4xlarge 16 Cores and 32 GiB Ram
## Ngnix v1.13.9
## GZIP, Brotli, SSL
user www-data;
worker_processes 16;
worker_rlimit_nofile 100000;
pid /run/nginx.pid;
events {