Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37515002
en ru br
Репозитории ALT

Группа :: Система/Серверы
Пакет: php8.1-fpm-fcgi

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: php-fpm-fcgi-config.patch
Скачать


--- php7-fpm-fcgi-7.1.0/php-fpm.conf.in.orig	2018-11-06 10:33:06.000000000 +0000
+++ php7-fpm-fcgi-7.1.0/php-fpm.conf.in	2018-11-12 11:35:09.151018113 +0000
@@ -21,7 +21,7 @@
 ; into a local file.
 ; Note: the default prefix is @EXPANDED_LOCALSTATEDIR@
 ; Default Value: log/php-fpm.log
-;error_log = log/php-fpm.log
+error_log = @localstatedir@/log/php@phpsuffix@-fpm/php@phpsuffix@-fpm.log
 
 ; syslog_facility is used to specify what type of program is logging the
 ; message. This lets syslogd specify that messages from different facilities
@@ -122,4 +122,4 @@
 ; Relative path can also be used. They will be prefixed by:
 ;  - the global prefix if it's been set (-p argument)
 ;  - @prefix@ otherwise
-include=@php_fpm_sysconfdir@/php-fpm.d/*.conf
+include=@php_fpm_sysconfdir@/fpm@phpsuffix@/php-fpm.d/*.conf
diff -urN php7-fpm-fcgi-7.1.0.orig/www.conf.in php7-fpm-fcgi-7.1.0/www.conf.in
--- php7-fpm-fcgi-7.1.0.orig/www.conf.in	2016-12-02 04:44:45.000000000 +0300
+++ php7-fpm-fcgi-7.1.0/www.conf.in	2016-12-21 17:14:18.149000000 +0300
@@ -33,7 +33,8 @@
 ;                            (IPv6 and IPv4-mapped) on a specific port;
 ;   '/path/to/unix/socket' - to listen on a unix socket.
 ; Note: This value is mandatory.
-listen = 127.0.0.1:9000
+;listen = 127.0.0.1:9000
+listen=@localstatedir@/run/php@phpsuffix@-fpm/php@phpsuffix@-fpm.sock
 
 ; Set listen(2) backlog.
 ; Default Value: 511 (-1 on FreeBSD and OpenBSD)
@@ -130,7 +131,7 @@
 ; This can be useful to work around memory leaks in 3rd party libraries. For
 ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
 ; Default Value: 0
-;pm.max_requests = 500
+pm.max_requests = 500
 
 ; The URI to view the FPM status page. If this value is not set, no URI will be
 ; recognized as a status page. It shows the following informations:
@@ -250,7 +251,7 @@
 
 ; The access log file
 ; Default: not set
-;access.log = log/$pool.access.log
+access.log = @localstatedir@/log/php@phpsuffix@-fpm/$pool.access.log
 
 ; The access log format.
 ; The following syntax is allowed
@@ -314,7 +315,7 @@
 ; The log file for slow requests
 ; Default Value: not set
 ; Note: slowlog is mandatory if request_slowlog_timeout is set
-;slowlog = log/$pool.log.slow
+slowlog = @localstatedir@/log/php@phpsuffix@-fpm/$pool.log.slow
 
 ; The timeout for serving a single request after which a PHP backtrace will be
 ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
@@ -408,6 +409,6 @@
 ;                specified at startup with the -d argument
 ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
 ;php_flag[display_errors] = off
-;php_admin_value[error_log] = /var/log/fpm-php.www.log
-;php_admin_flag[log_errors] = on
-;php_admin_value[memory_limit] = 32M
+php_admin_value[error_log] = @localstatedir@/log/php@phpsuffix@-fpm/fpm-php.www.log
+php_admin_flag[log_errors] = on
+;php_admin_value[memory_limit] = 64M
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin