; Change this to match your domain/sub-domain (don't include www.). [localhost] ; Change the following lines to match your site user & group. ; you can run id -gn the_user_name_here to find out the group. ; You only need to change this if you have your site folders/files ; owned by a different user. user = www-data group = www-data ; This group must match your server group. ; The default www-data usually works fine provided your server software ; is in that group (it usually is). listen.group = www-data ; Best to keep this as root. listen.owner = root ; The $pool value is replaced with whatever you've entered in the ; section header [site.com] above. ; Your webserver needs to be setup to talk to the socket at this ; location. listen = /run/php/$pool.sock ; Be sure to change these path values to match where your sites are. ; Leave the /$pool bit where it is. ; You only need to change /var/www/ to where you've placed your sites. ; e.g you have your sites in /var/srv, you'd enter /var/srv/$pool. ; ; Remember to change all the paths (if you need to)!! prefix = /var/www/$pool ; session save_path needs a full path value. php_admin_value[session.save_path] = $prefix/sessions ; These also need full path values. env[TMP] = $prefix/tmp env[TMPDIR] = $prefix/tmp env[TEMP] = $prefix/tmp ; You generally don't need to edit anything else below this line. listen.mode = 0660 php_admin_value[open_basedir] = $prefix:/usr/share/php:/etc/ssl/certs php_admin_value[disable_functions] = dl,exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f noreply@$pool php_admin_value[memory_limit] = 256M php_admin_value[upload_max_filesize] = 100M php_admin_value[upload_tmp_dir] = $prefix/tmp php_admin_value[error_log] = $prefix/tmp/php-error.log php_admin_flag[log_errors] = on php_flag[display_errors] = off access.log = $prefix/tmp/php-access.log access.format = "[%t] %m %{REQUEST_SCHEME}e://%{HTTP_HOST}e%{REQUEST_URI}e %f pid:%p took:%ds mem:%{mega}Mmb cpu:%C%% status:%s {%{REMOTE_ADDR}e|%{HTTP_X_FORWARDED_FOR}e|%{HTTP_USER_AGENT}e}" pm = ondemand pm.max_children = 100 pm.process_idle_timeout = 600s pm.max_requests = 1000 catch_workers_output = yes