Giter VIP home page Giter VIP logo

docker-php-fpm-5.2's Introduction

PHP-FPM 5.2

lint build nightly

Tag Gitter Discourse License

Available Architectures: amd64, i386

This repository will provide you a fully functional PHP-FPM 5.2.17 Docker image built from official sources nightly. Additional patches have been applied to enable FPM functionality. PHP 5.2 reached EOL on 06 Jan 2011 and thus, official docker support was dropped. It provides the base for Devilbox PHP-FPM Docker images.

Docker Hub Upstream Project

Similar Base Images

Have a look at the following similar Devilbox base images for which no official versions exist yet:

In case you are looking for development and production ready PHP-FPM images for all versions, which have a vast amount of modules enabled by default go here:

Documentation

In case you seek help, go and visit the community pages.

devilbox.readthedocs.io gitter.im/devilbox devilbox.discourse.group

Build

# Build the Docker image locally
make build

# Rebuild the Docker image locally without cache
make rebuild

# Test the Docker image after building
make test

Usage

Add the following FROM line into your Dockerfile:

FROM devilbox/php-fpm-5.2:latest

Available Modules

If you need a dockerized version of PHP 5.2 or PHP-FPM 5.2 which provides a vast amount of modules enabled by default visit: devilbox/docker-php-fpm

Module Built-in
ctype
curl
date
dom
filter
hash
iconv
json
libxml
mbstring
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
posix
readline
Reflection
session
SimpleXML
soap
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

Example

Create a temporary directory, navigate into it and copy/paste the commands below to get started.

1. Setup hello world webpage

mkdir htdocs
echo "<?php echo 'hello world';" > htdocs/index.php

2. Start PHP container

docker run -d --rm --name devilbox-php-fpm-5-2 \
  -v $(pwd)/htdocs:/var/www/default/htdocs devilbox/php-fpm-5.2

3. Start Nginx container

docker run -d --rm --name devilbox-nginx-stable \
  -v $(pwd)/htdocs:/var/www/default/htdocs \
  -e PHP_FPM_ENABLE=1 \
  -e PHP_FPM_SERVER_ADDR=devilbox-php-fpm-5-2 \
  -p 8080:80 \
  --link devilbox-php-fpm-5-2 \
  devilbox/nginx-stable

4. Open browser

Open up your browser at http://127.0.0.1:8080

Limitations

Web server Status Comments
Apache 2.2 Fails with no input file specified -
Apache 2.4 works Access/Error log via stdout/stderr or file works
Nginx stable works Access/Error log via stdout/stderr or file works
Nginx mainline works Access/Error log via stdout/stderr or file works

Todo

  • Make PHP-FPM 5.2 work with Apache 2.2

License

MIT License

Copyright (c) 2022 cytopia

docker-php-fpm-5.2's People

Contributors

cytopia avatar dependabot[bot] avatar sysl-padawan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.