Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Ashish Dung Dung ashishdungdung

🏠
Working from home
View GitHub Profile
@ashishdungdung
ashishdungdung / my.cnf
Created Mar 19, 2018
MYSQL Configuration
View my.cnf
# 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.
#
View www.conf
[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 Mar 17, 2018
PHP Configuration for High Resource Server
View php.ini
[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 Mar 17, 2018
Configuring NGINX for Maximum Throughput Under High Concurrency for EasyEngine with AWS c5.4xlarge Instance
View nginx.conf
## 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 {