Skip to content

php-fpm-v1.0.0

Latest
Compare
Choose a tag to compare
@jingjingxyk jingjingxyk released this 07 Aug 08:05
· 115 commits to php-fpm since this release

build static link php-fpm

静态编译 php-fpm

item value
branch php-fpm
tag php-fpm-v1.0.0
php version 8.2.13, 8.1.27, 8.3.3
release date 2024-08-07

借助于swoole-cli 的构建流程,构建FastCGI php-fpm

新增

  1. 改进打包 pool 目录,发版时不使用 缓存
  2. 修复 libiconv 下载地址 bug
  3. 启用 opcache 扩展

快速使用 静态编译的 php-fpm 运行时

curl -fSL  https://github.com/swoole/build-static-php/blob/main/setup-php-fpm-runtime.sh?raw=true | bash 

# 独立启动php-fpm
./bin/runtime/php-fpm -c ./bin/runtime/php.ini --fpm-config  ./bin/runtime/php-fpm.conf -p ./bin/runtime/var

构建 免安装 nginx 静态链接程序

快速启动 静态编译的 nginx php-fpm

备注: macos环境下 首次运行 无权限 ,解决方法

note : macos clearing the com.apple.quarantine extended attribute

# 查看属性
xattr ./bin/runtime/php-fpm
# 去除扩展属性
sudo xattr -rd com.apple.quarantine ./bin/runtime/php-fpm