Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest static binary php-cli and php-fpm #1

Open
jingjingxyk opened this issue Feb 28, 2025 · 0 comments
Open

latest static binary php-cli and php-fpm #1

jingjingxyk opened this issue Feb 28, 2025 · 0 comments

Comments

@jingjingxyk
Copy link
Collaborator

jingjingxyk commented Feb 28, 2025

item value
branch main
tag v1.8.0
swoole version v6.0.1
php version 8.1.31, 8.2.27, 8.3.15, 8.4.2
suport OS platform linux-x64 、linux-arm64、macos-x64、macos-arm64、windows-x64
release date 2025-02-28

php-cli runtime

借助于swoole-cli 的构建流程,构建包含swoole 扩展的 PHP-CLI 运行时

变更:详情

  1. swoole版本由v6.0.0 升级到v6.0.1
  2. 启用 windows-linux-arm64 原生构建
  3. 弃用 x86_64 平台 使用qemu 模拟 arm64 构建环境

快速使用 包含swoole 的 php-cli 运行时

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

# 指定下载版本
curl -fSL  https://github.com/swoole/build-static-php/blob/main/setup-php-cli-runtime.sh?raw=true | bash -s -- --version v1.7.1 --php-version v8.4.2

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

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

  # 查看扩展属性
   xattr ./php

  # 去除扩展属性
  sudo xattr -rd com.apple.quarantine  ./php

release files sha256sum (building)


build static link php-fpm

静态编译 php-fpm

item value
branch php-fpm
tag php-fpm-v2.0.0
php version 8.1.31, 8.2.27, 8.3.15, 8.4.2
suport OS platform linux-x64 、linux-arm64、macos-x64、macos-arm64
release date 2025-02-28

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

变更 详情

  1. 启用 windows-linux-arm64 原生构建
  2. 弃用 x86_64 平台 使用qemu 模拟 arm64 构建环境

快速使用 静态编译的 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
@jingjingxyk jingjingxyk pinned this issue Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant