PHP-FPM Config File
Jump to navigation
Jump to search
Below is an example PHP-FPM Config file that only requires a couple of changes:
[examplecom] listen = '/var/run/php-fcgi-examplecom.sock' ;listen.backlog = -1 listen.allowed_clients = 127.0.0.1 listen.owner = examplecomuser listen.group = examplecomuser ;listen.mode = 0666 user = examplecomuser group = examplecomuser pm = dynamic pm.max_children = 50 pm.start_servers = 5 pm.min_spare_servers = 5 pm.max_spare_servers = 20 pm.max_requests = 2000 ;pm.status_path = /status ;ping.path = /ping ;ping.response = pong ;request_terminate_timeout = 0 ;request_slowlog_timeout = 0 slowlog = /var/www/vhosts/example.com/phpfpm-slow.log ;rlimit_files = 1024 ;rlimit_core = 0 ;chroot = ;chdir = /var/www ;catch_workers_output = yes ;env[HOSTNAME] = $HOSTNAME ;env[PATH] = /usr/local/bin:/usr/bin:/bin ;env[TMP] = /tmp ;env[TMPDIR] = /tmp ;env[TEMP] = /tmp php_admin_value[error_log] = /var/www/vhosts/example.com/phpfpm-error.log php_admin_flag[log_errors] = on