Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.01 KB

apache2handler.md

File metadata and controls

30 lines (21 loc) · 1.01 KB

The apache2handler SAPI

Configure the apache2handler PHP SAPI.

PHP_SAPI_APACHE2HANDLER

  • 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