PHP Velho Oeste 2024

安装

从源代码编译

编译 PHP 时需要 --enable-fpm 配置选项来激活 FPM 支持。

以下为 FPM 编译的具体配置参数(全部为可选参数):

  • --with-fpm-user - 设置 FPM 运行的用户身份(默认 - nobody)。

  • --with-fpm-group - 设置 FPM 运行时的用户组(默认 - nobody)。

  • --with-fpm-systemd - 启用 systemd 集成 (默认 - no)。

  • --with-fpm-acl - 使用 POSIX 访问控制列表 (默认 - no)。

  • --with-fpm-apparmor - 激活 AppArmor 集成 (默认 - no)。

  • --with-fpm-selinux - 激活 SELinux 集成(默认 - no)。

更新日志

版本 说明
8.2.0 新增 --with-fpm-selinux 选项。
8.0.0 新增 --with-fpm-apparmor 选项。

add a note add a note

User Contributed Notes 3 notes

up
-12
juangiordana at gmail dot com
13 years ago
Notice that the libevent requeriment has been dropped since php-5.3.4.

http://bugs.php.net/52501
http://bugs.php.net/53691
up
-13
jlim at juristech dot net
10 years ago
If you get a compile/link error with WCOREDUMP undefined, then define the following in sapi/fpm/fpm/fpm_children.c.

This happened to me when running on AIX, which apparently does not define this macro.

#ifndef WCOREDUMP
#define WCOREDUMP(x) 0
#endif
</pre>
up
-13
php at gigfa dot com
13 years ago
An init startup script file can be found at :
./php-5.3.3/sapi/fpm/init.d.php-fpm
after successful compilation.
To Top