# PHP-base

PHP-base is a pre-configured Docker base image for running PHP web applications. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5107/php-base

## Description

PHP-base is a pre-configured Docker base image for running PHP web applications. It ships cli, fpm, and supervisord variants on Alpine Linux, so self-hosters can deploy PHP-based software on a lightweight, secure foundation without configuring PHP from scratch.

## Platform availability

Available on 0 of 10 platforms.

## Health score

82/100 (Excellent), based on 4 of 4 factors.
- Maintained: 100 (last commit 4 days ago)
- Popular: 92 (41,791 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Light to run: 95 (512 MB minimum RAM, runs on ARM)

## Links

- GitHub: https://github.com/php/php-src
- Docker Hub: https://hub.docker.com/r/wayofdev/php-base
- Official website: https://www.php.net
- Documentation: https://www.php.net/docs.php

## Common questions

### Do I need to compile PHP from source to run php-base?

No, prebuilt packages and binaries can be used to get running quickly. Windows binaries are ready to use after extracting the archive, while other systems should follow PHP's installation guidance.

### How should I update php-base when PHP releases security fixes?

Upgrade to the latest PHP security release for your branch when the PHP team announces one. The announcement states that all users of the affected branch are encouraged to upgrade.

### How can I verify a PHP source build before installing it?

Run make test after successful compilation. Tests run in parallel by default, and you can limit concurrency with TEST_PHP_ARGS=-jN or run sequentially with -j1.

### What security documentation should I review before exposing php-base publicly?

The PHP manual's Security section covers general considerations, sessions, filesystems, databases, error reporting, and user-submitted data. It also includes guidance for CGI or Apache installations and hiding PHP.

## Alternatives

- ASP.NET: ASP.NET is a framework for building and running modern, internet-connected web apps, IoT apps, and mobile backends.
- Crystal (programming language): Programming language with Ruby-like syntax that compiles to efficient native code.
- D (Programming Language): D is a language with C-like syntax and static typing.
- Java: Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have…
- Lua: Lua is a powerful, fast, lightweight, embeddable scripting language.
- Perl: Perl is a high-level, general-purpose, interpreted, dynamic programming language used for system administration, web development, network p…
- Python: This container needs special attention.
- elixir: Elixir is a programming language for developers who build scalable, fault-tolerant web applications and backend services, especially for co…
- haskell: Haskell is a specialized language used to build highly reliable and secure software.
- haxe: Haxe is an open-source programming language and cross-compiler that lets developers build cross-platform applications for web, mobile, and…
- ruby: Ruby is an interpreted, object-oriented programming language commonly used for building websites and web applications, as well as for scrip…

---
Source: Our Local Host (https://ourlocalhost.com/app/5107/php-base), the self-hosted and open-source app directory.
