Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Nginx Configuration:
- user www-data;
- worker_processes 4;
- pid /run/nginx.pid;
- events {
- worker_connections 768;
- # multi_accept on;
- }
- http {
- ##
- # Basic Settings
- ##
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- server_tokens off;
- # server_names_hash_bucket_size 64;
- # server_name_in_redirect off;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- ##
- # Logging Settings
- ##
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- ##
- # Gzip Settings
- ##
- gzip on;
- gzip_disable "msie6";
- # gzip_vary on;
- # gzip_proxied any;
- # gzip_comp_level 6;
- # gzip_buffers 16 8k;
- # gzip_http_version 1.1;
- # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- ##
- # nginx-naxsi config
- ##
- # Uncomment it if you installed nginx-naxsi
- ##
- #include /etc/nginx/naxsi_core.rules;
- ##
- # nginx-passenger config
- ##
- # Uncomment it if you installed nginx-passenger
- ##
- #passenger_root /usr;
- #passenger_ruby /usr/bin/ruby;
- ##
- # Virtual Host Configs
- ##
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
- #mail {
- # # See sample authentication script at:
- # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
- #
- # # auth_http localhost/auth.php;
- # # pop3_capabilities "TOP" "USER";
- # # imap_capabilities "IMAP4rev1" "UIDPLUS";
- #
- # server {
- # listen localhost:110;
- # protocol pop3;
- # proxy on;
- # }
- #
- # server {
- # listen localhost:143;
- # protocol imap;
- # proxy on;
- # }
- #}
- Php5-fpm conf as stored in /etc/php5/fpm/main.conf
- ;;;;;;;;;;;;;;;;;;;;;
- ; FPM Configuration ;
- ;;;;;;;;;;;;;;;;;;;;;
- ; All relative paths in this configuration file are relative to PHP's install
- ; prefix (/usr). This prefix can be dynamicaly changed by using the
- ; '-p' argument from the command line.
- ; Include one or more files. If glob(3) exists, it is used to include a bunch of
- ; files from a glob(3) pattern. This directive can be used everywhere in the
- ; file.
- ; Relative path can also be used. They will be prefixed by:
- ; - the global prefix if it's been set (-p arguement)
- ; - /usr otherwise
- ;include=/etc/php5/fpm/*.conf
- ;;;;;;;;;;;;;;;;;;
- ; Global Options ;
- ;;;;;;;;;;;;;;;;;;
- [global]
- ; Pid file
- ; Note: the default prefix is /var
- ; Default Value: none
- pid = /var/run/php5-fpm.pid
- ; Error log file
- ; Note: the default prefix is /var
- ; Default Value: log/php-fpm.log
- error_log = /var/log/php5-fpm.log
- ; Log level
- ; Possible Values: alert, error, warning, notice, debug
- ; Default Value: notice
- ;log_level = notice
- ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
- ; interval set by emergency_restart_interval then FPM will restart. A value
- ; of '0' means 'Off'.
- ; Default Value: 0
- ;emergency_restart_threshold = 0
- ; Interval of time used by emergency_restart_interval to determine when
- ; a graceful restart will be initiated. This can be useful to work around
- ; accidental corruptions in an accelerator's shared memory.
- ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
- ; Default Unit: seconds
- ; Default Value: 0
- ;emergency_restart_interval = 0
- ; Time limit for child processes to wait for a reaction on signals from master.
- ; Available units: s(econds), m(inutes), h(ours), or d(ays)
- ; Default Unit: seconds
- ; Default Value: 0
- ;process_control_timeout = 0
- ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
- ; Default Value: yes
- ;daemonize = yes
- ;;;;;;;;;;;;;;;;;;;;
- ; Pool Definitions ;
- ;;;;;;;;;;;;;;;;;;;;
- ; Multiple pools of child processes may be started with different listening
- ; ports and different management options. The name of the pool will be
- ; used in logs and stats. There is no limitation on the number of pools which
- ; FPM can handle. Your system will tell you anyway :)
- ; To configure the pools it is recommended to have one .conf file per
- ; pool in the following directory:
- include=/etc/php5/fpm/pool.d/*.conf
- Ram Usage at top
- Private + Shared = RAM used Program
- 188.0 KiB + 30.0 KiB = 218.0 KiB syslogd
- 284.0 KiB + 45.0 KiB = 329.0 KiB cron
- 296.0 KiB + 45.0 KiB = 341.0 KiB xinetd
- 372.0 KiB + 228.5 KiB = 600.5 KiB pickup
- 400.0 KiB + 211.5 KiB = 611.5 KiB master
- 472.0 KiB + 232.5 KiB = 704.5 KiB qmgr
- 712.0 KiB + 58.5 KiB = 770.5 KiB init
- 1.1 MiB + 41.0 KiB = 1.1 MiB bash
- 1.4 MiB + 851.0 KiB = 2.2 MiB sshd (2)
- 2.4 MiB + 1.1 MiB = 3.4 MiB nginx (5)
- 11.5 MiB + 122.5 KiB = 11.6 MiB named
- 18.3 MiB + 81.5 KiB = 18.4 MiB mysqld
- 244.2 MiB + 83.4 MiB = 327.6 MiB php5-fpm (21)
- ---------------------------------
- 367.9 MiB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement