Skip to content

sapi/apache2handler: Add --disable-apache2-conf configure option#22095

Merged
petk merged 1 commit into
php:masterfrom
paulmenzel:add-disable-apache2-conf-option
Jun 12, 2026
Merged

sapi/apache2handler: Add --disable-apache2-conf configure option#22095
petk merged 1 commit into
php:masterfrom
paulmenzel:add-disable-apache2-conf-option

Conversation

@paulmenzel

Copy link
Copy Markdown
Contributor

No description provided.

Add a new --disable-apache2-conf option that prevents apxs from editing
httpd.conf during installation. When SYSCONFDIR is non-empty, apxs is
invoked with -a, which requires httpd.conf to exist at the target path.
This fails when installing into a staging directory (INSTALL_ROOT) where
no `httpd.conf` exists but apxs is present and works, and is also
unwanted on distributions [like Debian][1] that manage Apache module
activation separately (e.g. via a2enmod).

[1]: https://salsa.debian.org/php-team/php/-/blob/9bd72dc78216cf136315d765ec3a602ac99e60e3/debian/patches/0030-Add-patch-to-install-php7-module-directly-to-APXS_LI.patch

Assisted-by: Claude Sonnet 4.6

@petk petk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Thanks.

Comment thread sapi/apache2handler/config.m4
@petk petk merged commit 2869551 into php:master Jun 12, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants