Skip to content

Commit

Permalink
Merge pull request #117 from NethServer/php73
Browse files Browse the repository at this point in the history
conf: add custom FPM pool

NethServer/dev#6632
  • Loading branch information
gsanchietti committed Jan 31, 2022
2 parents f19bc8d + f3163ac commit fb71f79
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions nethserver-webtop5.spec
Expand Up @@ -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
Expand Down
39 changes: 39 additions & 0 deletions 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

0 comments on commit fb71f79

Please sign in to comment.