Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to override Lando's PHP-FPM settings #108

Open
tormi opened this issue Mar 20, 2024 · 3 comments
Open

How to override Lando's PHP-FPM settings #108

tormi opened this issue Mar 20, 2024 · 3 comments
Labels
4.x documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers

Comments

@tormi
Copy link

tormi commented Mar 20, 2024

Here's a recipe for overriding Lando's default PHP-FPM settings. If necessary, adjust the name of the .lando folder.

.lando.yml

services:
  appserver:
    overrides:
      volumes:
        # Override default PHP-FPM settings.
        - ./.lando/php-fpm.conf:/usr/local/etc/php-fpm.d/www_overrides.conf

.lando/php-fpm.conf

; Override default PHP-FPM settings.
[www]

pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.max_requests = 500
@reynoldsalec
Copy link
Member

Looking at this and considering https://github.com/lando/docs/issues/17, I'm wondering if we want to change this issue to making the php-fpm config editable via the config option in the .lando.yml file? Sounds like folks are desiring it.

@reynoldsalec reynoldsalec added enhancement New feature or request good first issue Good for newcomers documentation Improvements or additions to documentation 4.x labels Mar 28, 2024
@pirog
Copy link
Member

pirog commented Oct 17, 2024

i saw some pool related code was merged into main is that related to this?

@reynoldsalec
Copy link
Member

Per our convo this morning I'm guessing that's the case; would be cool to wrap that up, sorry for the half-done feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Projects
Development

No branches or pull requests

3 participants