Skip to content

Commit 6b07e42

Browse files
committed
Bandage for 502 errors using Gettext/PostgreSQL/MongoDB
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).
1 parent f9a9f7d commit 6b07e42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cli/stubs/etc-phpfpm-valet.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ pm.start_servers = 2
2424
pm.min_spare_servers = 1
2525
pm.max_spare_servers = 3
2626

27+
;; 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
28+
; for gettext
29+
env['LC_ALL'] = C
30+
; for postgres
31+
env['PGGSSENCMODE'] = disable
32+

0 commit comments

Comments
 (0)