Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

phpConfigs ignored in FPM images

Aperta
#663 3 commenti 8 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
helm, kubernetes, php
Ambito
cloud, devops

Direzione di ricerca

Inizia da values.yaml e dalle modifiche della PR 71, quindi traccia dove phpConfigs viene renderizzato e montato rispetto a /usr/local/etc/php-fpm.d e /usr/local/etc/php/conf.d. Verifica che le impostazioni ini vengano lette da PHP-FPM e che sia possibile definire e documentare un valore separato per la configurazione del pool senza dipendere da PHP_INI_SCAN_DIR.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe your Issue

Overview

The changes introduced in [PR 71] have affected the handling of phpConfigs, leading to some confusion about the expected values in this parameter.

Background

The original purpose of the /usr/local/etc/php-fpm.d directory is to permit customization of php-fpm pool definitions via *.conf files. This is defined under the include parameter in the php-fpm.conf file.

According to the current README, the phpConfigs setting is designed for custom php.ini values. An example provided demonstrates how to change the php memory_limit parameter.

Logs and Errors

In the current deployment of nginx + php-fpm, settings added to phpConfigs appear ineffective.
Following [PR 71], generated configmap files are mounted to the /usr/local/etc/php-fpm.d directory, but this directory is not utilized as a source for ini files. Instead, the php-fpm process reads additional ini files from /usr/local/etc/php/conf.d, similar to the behavior of the PHP-SAPI module for Apache.

Describe your Environment

  • Kubernetes distribution: Vanilla v1.23.17

  • Helm version: 3.15.4 (using helmfile, 0.168.0)

  • Helm Chart Version: 6.2.3

  • values.yaml:

...
  phpConfigs:
    opcache-tunning.ini: |-
      opcache.memory_consumption=256
...

Additional context, if any

Workaround

As a temporary solution, I added the following environment variable:

PHP_INI_SCAN_DIR=:/usr/local/etc/php-fpm.d/

This instructs PHP to also search for ini files in /usr/local/etc/php-fpm.d, in addition to /usr/local/etc/php/conf.d. However, this feels like a makeshift workaround.

Suggestion

I suggest introducing an additional Helm value to distinguish between the two functionalities: one for ini settings and another for php-fpm pool settings. This would involve:

  • Keeping phpConfigs for custom ini files.
  • Adding a distinct parameter for php-fpm pool configurations, such as phpFpmPools.
Lingua principale
Go Template
Stelle
536
Fork
316
Merge medio
4g 16h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/helm

Tutte le issue di nextcloud/helm

Issue simili

Altre issue su Cloud

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.