You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request: Precompiled PHP Binaries for Linux (ELF, DEB, RPM) for No-Root Users #1718
Request: Precompiled PHP Binaries for Linux (ELF, DEB, RPM) for No-Root Users
Description
It would be very helpful to provide precompiled PHP binaries for popular Linux distributions (Ubuntu, Fedora, Debian, etc.) with the following features:
No root required: Users can run PHP without needing sudo or installing system packages.
Self-contained: All required libraries are included so the PHP binary works independently of the host system.
Official ELF, DEB, and RPM packages: Preferred formats for native Linux installations.
Multiple versions: Official binaries for major PHP releases (e.g., 8.2, 8.3, 8.5) to allow developers to test or run different projects.
Motivation
Currently, installing a specific PHP version from source requires root access to install dependencies (libxml2-dev, libssl-dev, etc.). Many developers, especially in shared environments, CI pipelines, or user-only accounts, cannot install these libraries. Precompiled ELF, DEB, or RPM binaries would:
Make PHP accessible in no-root environments.
Simplify testing and switching between multiple PHP versions.
Reduce friction for Linux developers needing portable, self-contained PHP installations.
Suggested Approach
Provide official ELF binaries and/or self-contained DEB/RPM packages.
Include all common extensions and dependencies.
Provide clear instructions on how to run the binaries without root.
Thank you for considering this enhancement. It would make PHP much more versatile for Linux developers in restricted or user-only environments.
Activity
pronskiy commentedon Jan 13, 2026
@codeformatstudio does https://github.com/crazywhalecc/static-php-cli solve your needs?
It provides pre-built binaries https://github.com/crazywhalecc/static-php-cli?tab=readme-ov-file#direct-download