php / php/php-src

Building `--with-fpm` without `--prefix` adds `NONE` to include path in `php-fpm.conf.default`

Đang mở
#20,845 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

@bukka đang làm issue này rồi.

Từ ngày 6/1/2026.

Bug Category: Build System SAPI: fpm Status: Needs Triage
Ngôn ngữ chính
C
Star
40.4k
Fork
8.1k
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
96

Mô tả

Description

There's a small bug while building php-fpm, but with no prefix definition. After build process you get an /usr/local/etc/php-fpm.conf.default, but the include path is wrong;

# current
include=NONE/etc/php-fpm.d/*.conf

# should
include=/usr/local/etc/php-fpm.d/*.conf

To solve this, you can simply run ./configure with --prefix=/usr/local flag.

I searched a bit in the code & think there's a missing default setting in C, but I'm too stupid for that language :-) Found out following lines of code, may this will help a bit for faster debugging :-)
https://github.com/php/php-src/blob/master/sapi/fpm/php-fpm.conf.in#L142
https://github.com/php/php-src/blob/master/sapi/fpm/config.m4#L502
https://github.com/php/php-src/blob/master/main/build-defs.h.in#L28

PS: There's an old workaround in current official docker images for that, seems they were too frustrated a) trying a rebuild with prefix flag & b) opening an issue :D
https://github.com/docker-library/php/blob/master/8.5/alpine3.23/fpm/Dockerfile#L211
PS²: Is it possible to generate the config-files without ´.default` suffix? :)

PHP Version
even before php8 era
Operating System

No response

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.