diff --git a/matomo-php-fpm.conf b/matomo-php-fpm.conf new file mode 100644 index 0000000..50c1dcf --- /dev/null +++ b/matomo-php-fpm.conf @@ -0,0 +1,25 @@ +[matomo] +user = wwwrun +group = www +listen = 127.0.0.1:9000 +listen.allowed_clients = 127.0.0.1 + +pm = dynamic +pm.max_children = 100 +pm.start_servers = 30 +pm.min_spare_servers = 30 +pm.max_spare_servers = 50 +;pm.max_requests = 500 +chroot = +chdir = __matomo_web__ + +php_admin_value[ open_basedir] = "__matomo_web__:__matomo_conf__:__matomo_log__:/tmp:/usr/bin:/var/cache/apache2:/run/matomo_sessions" +php_admin_flag[display_startup_errors] = Off +php_admin_flag[display_errors] = Off +php_admin_flag[file_uploads] = Off +php_admin_flag[allow_url_fopen] = Off +php_admin_value[upload_tmp_dir] = "/var/cache/apache2" +php_admin_value[session.save_path] = "/run/matomo_sessions/" +php_admin_value[disable_functions] = "posix_setpgid,exec,ftp_login,mysql_pconnect,apache_setenv,popen,posix_getpwuid,posix_setsid,passthru,escapeshellcmd,ini_alter,ftp_raw,ftp_nb_fput,ini_restore,ftp_get,proc_get_status,highlight_file,proc_close,proc_terminate,syslog,ftp_connect,posix_uname,ini_get_all,proc_open,posix_kill,escapeshellarg,ftp_rawlist,posix_setuid,openlog,php_uname,system,ftp_exec,posix_mkfifo,proc_nice,ftp_put" +php_admin_value[memory_limit] = "1024M" +php_admin_value[max_execution_time] = 120