- Source code: sapi/apache2handler/CMakeLists.txt
Configure the apache2handler
PHP SAPI.
- Default:
OFF
- Values:
ON|OFF
Enable the shared Apache 2 handler SAPI module.
Loadable via Apache's Dynamic Shared Object (DSO) support. If Apache will use
PHP together with one of the threaded Multi-Processing Modules (MPMs), PHP must
be configured and built with PHP_THREAD_SAFETY
set to ON
. Thread safety will
be set automatically during the configuration step, if threaded Apache can be
discovered on the system.
Path where to look for the Apache installation on the system can be customized
with the APACHE_ROOT
and Apache_APXS_EXECUTABLE
variables.
For example:
cmake -B php-build -DAPACHE2HANDLER=ON -DAPACHE_ROOT=/opt/apache2
# or
cmake -B php-build -DAPACHE2HANDLER=ON -DApache_EXECUTABLE=/opt/apache2/bin/apxs