@@ -6,27 +6,27 @@ Configure the `fpm` PHP SAPI.
66> [!NOTE]
77> PHP FPM is not available when the target system is Windows.
88
9- ## SAPI_FPM
9+ ## PHP_SAPI_FPM
1010
1111* Default: `OFF`
1212* Values: `ON|OFF`
1313
1414Enable the FastCGI Process Manager (FPM) SAPI module.
1515
16- ## SAPI_FPM_USER
16+ ## PHP_SAPI_FPM_USER
1717
1818* Default: `nobody`
1919
2020Set the user for running PHP FPM.
2121
22- ## SAPI_FPM_GROUP
22+ ## PHP_SAPI_FPM_GROUP
2323
2424* Default: `nobody`
2525
2626Set the group for running PHP FPM. For a system user, this should usually be set
2727in a way to match the FPM username.
2828
29- ## SAPI_FPM_ACL
29+ ## PHP_SAPI_FPM_ACL
3030
3131* Default: `OFF`
3232* Values: `ON|OFF`
@@ -40,7 +40,7 @@ Where to find ACL installation on the system, can be customized with the
4040> This option is not available when the target system is Darwin (macOS) as this
4141> system doesn't have ACL.
4242
43- ## SAPI_FPM_APPARMOR
43+ ## PHP_SAPI_FPM_APPARMOR
4444
4545* Default: `OFF`
4646* Values: `ON|OFF`
@@ -54,7 +54,7 @@ Where to find AppArmor installation on the system, can be customized with the
5454> This option is not available when the target system is Darwin (macOS) as this
5555> system doesn't have AppArmor.
5656
57- ## SAPI_FPM_SELINUX
57+ ## PHP_SAPI_FPM_SELINUX
5858
5959* Default: `OFF`
6060* Values: `ON|OFF`
@@ -68,7 +68,7 @@ Where to find SELinux installation on the system, can be customized with the
6868> This option is not available when the target system is Darwin (macOS) as this
6969> system doesn't have SELinux.
7070
71- ## SAPI_FPM_SYSTEMD
71+ ## PHP_SAPI_FPM_SYSTEMD
7272
7373* Default: `OFF`
7474* Values: `ON|OFF`
@@ -102,84 +102,84 @@ include(PHP/Set)
102102# FPM configuration.
103103################################################################################
104104
105- option (SAPI_FPM "Enable the FPM SAPI module" )
105+ option (PHP_SAPI_FPM "Enable the FPM SAPI module" )
106106add_feature_info(
107107 "sapi/fpm"
108- SAPI_FPM
108+ PHP_SAPI_FPM
109109 "FastCGI Process Manager"
110110)
111111
112112php_set(
113- SAPI_FPM_USER
113+ PHP_SAPI_FPM_USER
114114 TYPE STRING
115- IF SAPI_FPM
115+ IF PHP_SAPI_FPM
116116 VALUE "nobody"
117117 DOC "Set the user for running PHP FPM (default: nobody)"
118118)
119119
120120php_set(
121- SAPI_FPM_GROUP
121+ PHP_SAPI_FPM_GROUP
122122 TYPE STRING
123- IF SAPI_FPM
123+ IF PHP_SAPI_FPM
124124 VALUE "nobody"
125125 DOC
126126 "Set the group for running PHP FPM. For a system user, this should usually "
127127 "be set to match the FPM username (default: nobody)"
128128)
129129
130130php_set(
131- SAPI_FPM_ACL
131+ PHP_SAPI_FPM_ACL
132132 TYPE BOOL
133- IF [[SAPI_FPM AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin"]]
133+ IF [[PHP_SAPI_FPM AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin"]]
134134 VALUE OFF
135135 DOC "Use POSIX Access Control Lists"
136136)
137137add_feature_info(
138138 "sapi/fpm ACL"
139- SAPI_FPM_ACL
139+ PHP_SAPI_FPM_ACL
140140 "POSIX Access Control Lists integration"
141141)
142142
143143php_set(
144- SAPI_FPM_APPARMOR
144+ PHP_SAPI_FPM_APPARMOR
145145 TYPE BOOL
146- IF [[SAPI_FPM AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin"]]
146+ IF [[PHP_SAPI_FPM AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin"]]
147147 VALUE OFF
148148 DOC "Enable the AppArmor confinement through libapparmor"
149149)
150150add_feature_info(
151151 "sapi/fpm AppArmor"
152- SAPI_FPM_APPARMOR
152+ PHP_SAPI_FPM_APPARMOR
153153 "application confinement integration"
154154)
155155
156156php_set(
157- SAPI_FPM_SELINUX
157+ PHP_SAPI_FPM_SELINUX
158158 TYPE BOOL
159- IF [[SAPI_FPM AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin"]]
159+ IF [[PHP_SAPI_FPM AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin"]]
160160 VALUE OFF
161161 DOC "Enable the SELinux policy library support"
162162)
163163add_feature_info(
164164 "sapi/fpm SELinux"
165- SAPI_FPM_SELINUX
165+ PHP_SAPI_FPM_SELINUX
166166 "security policy integration"
167167)
168168
169169php_set(
170- SAPI_FPM_SYSTEMD
170+ PHP_SAPI_FPM_SYSTEMD
171171 TYPE BOOL
172- IF [[SAPI_FPM AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin"]]
172+ IF [[PHP_SAPI_FPM AND NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin"]]
173173 VALUE OFF
174174 DOC "Enable the systemd integration"
175175)
176176add_feature_info(
177177 "sapi/fpm systemd"
178- SAPI_FPM_SYSTEMD
178+ PHP_SAPI_FPM_SYSTEMD
179179 "system and service manager integration"
180180)
181181
182- if (NOT SAPI_FPM )
182+ if (NOT PHP_SAPI_FPM )
183183 return ()
184184endif ()
185185
@@ -458,7 +458,7 @@ endif()
458458# Configure FPM from configuration options.
459459################################################################################
460460
461- if (SAPI_FPM_SYSTEMD )
461+ if (PHP_SAPI_FPM_SYSTEMD )
462462 find_package (Systemd 209)
463463 set_package_properties(
464464 Systemd
@@ -480,7 +480,7 @@ else()
480480 set (PHP_FPM_SYSTEMD "simple" )
481481endif ()
482482
483- if (SAPI_FPM_ACL )
483+ if (PHP_SAPI_FPM_ACL )
484484 set (ACL_USE_USER_GROUP TRUE )
485485 find_package (ACL)
486486 set_package_properties(
@@ -502,7 +502,7 @@ if(SAPI_FPM_ACL)
502502 endif ()
503503endif ()
504504
505- if (SAPI_FPM_APPARMOR )
505+ if (PHP_SAPI_FPM_APPARMOR )
506506 find_package (AppArmor)
507507 set_package_properties(
508508 AppArmor
@@ -518,7 +518,7 @@ if(SAPI_FPM_APPARMOR)
518518 endif ()
519519endif ()
520520
521- if (SAPI_FPM_SELINUX )
521+ if (PHP_SAPI_FPM_SELINUX )
522522 find_package (SELinux)
523523 set_package_properties(
524524 SELinux
@@ -581,8 +581,8 @@ php_configure_file(
581581 VARIABLES
582582 prefix "$<INSTALL_PREFIX>"
583583 php_fpm_prefix "$<INSTALL_PREFIX>"
584- php_fpm_user "${SAPI_FPM_USER } "
585- php_fpm_group "${SAPI_FPM_GROUP } "
584+ php_fpm_user "${PHP_SAPI_FPM_USER } "
585+ php_fpm_group "${PHP_SAPI_FPM_GROUP } "
586586 EXPANDED_DATADIR "$<PATH:ABSOLUTE_PATH,NORMALIZE,${CMAKE_INSTALL_DATADIR} ,$<INSTALL_PREFIX>>"
587587)
588588
0 commit comments