定制 amouhzi/pool-pilot 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

amouhzi/pool-pilot

Composer 安装命令:

composer create-project amouhzi/pool-pilot

包简介

A command-line tool to simplify the management of multiple PHP applications on a single server using PHP-FPM pools.

README 文档

README

PoolPilot is a command-line tool that simplifies infrastructure management for developers running multiple PHP applications on a single Debian/Ubuntu instance. Instead of maintaining a separate LXC container for every project, PoolPilot orchestrates a secure, shared environment using PHP-FPM pools.

This tool automates the manual labor of system administration by handling:

  • User Isolation: Creates dedicated system users and groups for each application to enforce strict filesystem permissions.
  • FPM Configuration: Generates unique PHP-FPM pool configurations with dynamic socket allocation.
  • Version Awareness: Automatically detects the running PHP version (e.g., 8.2, 8.3) to apply the correct paths and service restarts.
  • Service Management: Seamless interaction with systemd to reload configurations instantly.

Installation

1. Install PoolPilot

Install PoolPilot globally using Composer:

composer global require amouhzi/pool-pilot

2. Update Your System PATH

To run the pool-pilot command from anywhere, you must add Composer's global bin directory to your system's PATH.

First, find the correct directory by running:

composer global config bin-dir --absolute

Now, add the following line to your shell configuration file (e.g., ~/.bashrc, ~/.zshrc). Replace ~/.composer/vendor/bin with the path you found above if it's different.

export PATH="$HOME/.composer/vendor/bin:$PATH"

Finally, reload your shell configuration to apply the changes:

source ~/.bashrc
# Or for Zsh:
# source ~/.zshrc

Updating

To update PoolPilot to the latest version, run:

composer global update amouhzi/pool-pilot

Usage

PoolPilot can be run in two modes: as the root user for simplicity, or as a non-root user for enhanced security.

Simple Mode (As Root)

If you are logged in as root, you can run the command directly. The tool will handle all system operations without needing sudo.

pool-pilot app:create my-app my-app.com

Secure Mode (As a Non-Root User)

This is the recommended approach for production servers and automated deployments (e.g., with php-deployer).

  1. Create a Deployer User: If you don't have one, create a dedicated user for deployments.

  2. Configure Sudo: The tool will automatically use sudo for privileged operations. To allow this without a password, create a sudoers file for your deployer user:

    sudo visudo -f /etc/sudoers.d/deployer

    Add the following lines, which grant password-less access only to the commands PoolPilot needs:

    # Allow the deployer user to manage users, services, and files for PoolPilot
    deployer ALL=(ALL) NOPASSWD: /usr/sbin/useradd, /usr/sbin/groupadd, /bin/systemctl, /bin/chown, /bin/chmod, /usr/bin/ln, /usr/bin/mkdir, /usr/bin/tee
    
  3. Run the Command: As the deployer user, run the command. sudo will be invoked automatically where needed.

    pool-pilot app:create my-app my-app.com

Contributing

Contributions are welcome! Please feel free to submit a pull request.

License

This project is licensed under the MIT License.

amouhzi/pool-pilot 适用场景与选型建议

amouhzi/pool-pilot 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 amouhzi/pool-pilot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 amouhzi/pool-pilot 我们能提供哪些服务?
定制开发 / 二次开发

基于 amouhzi/pool-pilot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 31
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-01