diff --git a/nethserver-webtop5.spec b/nethserver-webtop5.spec index 869a18e..aa1d303 100644 --- a/nethserver-webtop5.spec +++ b/nethserver-webtop5.spec @@ -95,6 +95,7 @@ cp -a api/* %{buildroot}/usr/libexec/nethserver/api/%{name}/ %files -f %{name}-%{version}-filelist %defattr(-,root,root) %config %ghost %attr (0644,root,root) %{_sysconfdir}/httpd/conf.d/webtop.conf +%config(noreplace) %attr (0644,root,root) /etc/opt/rh/rh-php73/php-fpm.d/000-webtop.conf %dir %{_nseventsdir}/%{name}-update %dir /usr/share/webtop/updates/pre %dir /usr/share/webtop/updates/post diff --git a/root/etc/opt/rh/rh-php73/php-fpm.d/000-webtop.conf b/root/etc/opt/rh/rh-php73/php-fpm.d/000-webtop.conf new file mode 100644 index 0000000..84e2cb2 --- /dev/null +++ b/root/etc/opt/rh/rh-php73/php-fpm.d/000-webtop.conf @@ -0,0 +1,39 @@ +; +; webtop php-fpm configuration +; + +[nethserver-webtop] +listen = /var/run/rh-php73-php-fpm/nethserver-webtop-php73.sock + +;Logs +php_admin_value[error_log] = /var/opt/rh/rh-php73/log/php-fpm/error-webtop.log +php_admin_flag[log_errors] = on + +pm = dynamic +pm.max_children = 50 +pm.start_servers = 5 +pm.min_spare_servers = 5 +pm.max_spare_servers = 35 + +user = apache; +group = apache +listen.owner = root +listen.group = apache +listen.mode = 0660 + +; Set data paths to directories owned by process user +php_value[session.save_handler] = files +php_value[session.save_path] = /var/opt/rh/rh-php73/lib/php/session +php_value[soap.wsdl_cache_dir] = /var/opt/rh/rh-php73/lib/php/wsdlcache + +; Set opcache settings +php_value[opcache.file_cache] = /var/opt/rh/rh-php73/lib/php/opcache +php_value[opcache.enable_cli] = 1 +php_value[opcache.interned_strings_buffer] = 8 +php_value[opcache.max_accelerated_files] = 10000 +php_value[opcache.memory_consumption] = 128 +php_value[opcache.save_comments] = 1 +php_value[opcache.revalidate_freq] = 1 + +; PHP settings +php_admin_value[memory_limit] = 512M