Skip to content

Commit

Permalink
Bandage for 502 errors using Gettext/PostgreSQL/MongoDB
Browse files Browse the repository at this point in the history
Many have reported that these changes "do" help the problem.
And yet many others have reported that they make no difference.

Closes laravel#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).
  • Loading branch information
drbyte committed Oct 9, 2023
1 parent f9a9f7d commit 6b07e42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/stubs/etc-phpfpm-valet.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ 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

0 comments on commit 6b07e42

Please sign in to comment.