mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Many have reported that these changes "do" help the problem. And yet many others have reported that they make no difference. Closes #1433 This PR is merely a bandage for a broader problem that exists in the PHP build for MacOS. See the issue referenced above for discussion and links to Homebrew and PHP repository discussions. The problem is not in Homebrew, but in the PHP build published by the PHP core. Chime in on the PHP discussion if you want to stir up more active participation for a proper fix, telling them that you're a Mac user encountering the fork segfaults (they won't care whether you're using Valet, but they will recognize if you mention Homebrew).
33 lines
932 B
Plaintext
33 lines
932 B
Plaintext
; FPM pool configuration for Valet
|
|
|
|
[valet]
|
|
user = VALET_USER
|
|
group = staff
|
|
listen = VALET_HOME_PATH/valet.sock
|
|
listen.owner = VALET_USER
|
|
listen.group = staff
|
|
listen.mode = 0777
|
|
|
|
;; When uncommented, the following values will take precedence over settings declared elsewhere
|
|
;php_admin_value[memory_limit] = 512M
|
|
;php_admin_value[upload_max_filesize] = 128M
|
|
;php_admin_value[post_max_size] = 128M
|
|
|
|
;php_admin_value[error_log] = VALET_HOME_PATH/Log/php-fpm.log
|
|
;php_admin_flag[log_errors] = on
|
|
|
|
|
|
;; Note: increasing these values will increase the demand on your CPU and RAM resources
|
|
pm = dynamic
|
|
pm.max_children = 5
|
|
pm.start_servers = 2
|
|
pm.min_spare_servers = 1
|
|
pm.max_spare_servers = 3
|
|
|
|
;; these are an attempt to mitigate 502 errors caused by segfaults in upstream processes caused by krb5 v1.21 added in June 2023 to php's core build. Ref Issue #1433
|
|
; for gettext
|
|
env['LC_ALL'] = C
|
|
; for postgres
|
|
env['PGGSSENCMODE'] = disable
|
|
|