GithubHelp home page GithubHelp logo

devilbox / docker-php-fpm-5.3 Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 20.0 8.85 MB

PHP-FPM 5.3 Docker Image (base image) [multi-arch]

Home Page: http://devilbox.org

License: MIT License

Shell 96.40% Makefile 3.60%
php php5 php53 php-fpm php-fpm53 docker docker-image dockerfile devilbox

docker-php-fpm-5.3's Introduction

PHP-FPM 5.3

Tag lint build nightly License

Discord Discourse

Available Architectures: amd64, i386, arm64, arm/v7, arm/v6

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

๐Ÿฑ GitHub: devilbox/docker-php-fpm-5.3
Upstream Project Reference Implementation
Streamlined PHP-FPM images The Devilbox

๐Ÿ‹ Available Docker tags

latest jessie stretch

docker pull devilbox/php-fpm-5.3

Rolling releases

The following Docker image tags are rolling releases and are built and updated every night.

nightly

Docker Tag Git Ref Available Architectures
latest master amd64, i386, arm64, arm/v7, arm/v6
jessie master amd64, i386, arm64, arm/v7, arm/v6
stretch master amd64, i386, arm64, arm/v7, arm/v6

Point in time releases

The following Docker image tags are built once and can be used for reproducible builds. Its version never changes so you will have to update tags in your pipelines from time to time in order to stay up-to-date.

build

Docker Tag Git Ref Available Architectures
<tag> git: <tag> amd64, i386, arm64, arm/v7, arm/v6
jessie-<tag> git: <tag> amd64, i386, arm64, arm/v7, arm/v6
stretch-<tag> git: <tag> amd64, i386, arm64, arm/v7, arm/v6

๐Ÿ›ˆ Where <tag> refers to the chosen git tag from this repository.

โˆ‘ Environment Variables

None

๐Ÿ–ง Exposed Ports

PHP-FPM listening port 9000

๐Ÿ“‚ Volumes

None

โœฐ Available Extensions

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

๐Ÿ›ˆ Click below listed extensions for details:

Extension Built-in
ctype โœ“
curl โœ“
date โœ“
dom โœ“
ereg โœ“
fileinfo โœ“
filter โœ“
ftp โœ“
hash โœ“
iconv โœ“
json โœ“
libxml โœ“
mbstring โœ“
mhash โœ“
mysqlnd โœ“
openssl โœ“
pcre โœ“
PDO โœ“
pdo_sqlite โœ“
Phar โœ“
posix โœ“
readline โœ“
recode โœ“
Reflection โœ“
session โœ“
SimpleXML โœ“
SPL โœ“
SQLite โœ“
sqlite3 โœ“
tokenizer โœ“
xml โœ“
xmlreader โœ“
xmlwriter โœ“
zlib โœ“

โˆข 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.3:latest

๐Ÿ’ก Examples

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.3 \
  -v $(pwd)/htdocs:/var/www/default/htdocs devilbox/php-fpm-5.3

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.3 \
  -p 8080:80 \
  --link devilbox-php-fpm-5.3 \
  devilbox/nginx-stable

4. Open browser

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

๐Ÿ” 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: PHP-FPM

๐Ÿ›ˆ For details see Documentation: Base Images

๐Ÿ–ค Sister Projects

Show some love for the following sister projects.

๐Ÿ–ค Project ๐Ÿฑ GitHub ๐Ÿ‹ DockerHub
Devilbox
docker-php-fpm devilbox/php-fpm
docker-php-fpm-community devilbox/php-fpm-community
docker-mysql devilbox/mysql
docker-apache-2.2
docker-apache-2.4
docker-nginx-stable
docker-nginx-mainline
devilbox/apache-2.2
devilbox/apache-2.4
devilbox/nginx-stable
devilbox/nginx-mainline

๐Ÿ‘ซ Community

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

devilbox.readthedocs.io discord/devilbox devilbox.discourse.group

๐Ÿง˜ Maintainer

@cytopia

I try to keep up with literally over 100 projects besides a full-time job. If my work is making your life easier, consider contributing. ๐Ÿ–ค

Findme: ๐Ÿฑ cytopia / devilbox | ๐Ÿ‹ cytopia / devilbox | ๐Ÿฆ everythingcli / devilbox | ๐Ÿ“– everythingcli.org

Contrib: PyPI: cytopia ยท Terraform: cytopia ยท Ansible: cytopia

๐Ÿ—Ž License

MIT License

Copyright (c) 2022 cytopia

docker-php-fpm-5.3's People

Contributors

anatolinicolae avatar cytopia avatar dependabot[bot] avatar dvlbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-php-fpm-5.3's Issues

Can't install mysql

This image does not contain any extensions to mysql, mysql, mysqli, pdo_mysql, and via RUN docker-php-ext-install mysqli it also reports the following error.

The command '/bin/sh -c docker-php-ext-install mysqli' returned a non-zero code: 1

[Bug]: The following signatures were invalid: KEYEXPIRED 1668891673

(Optional) Error message

http://deb.debian.org jessie-updates InRelease: The following signatures were invalid: KEYEXPIRED 1668891673

What went wrong?

#0 31.33 W: GPG error: http://archive.debian.org jessie-backports InRelease: The following signatures were invalid: KEYEXPIRED 1587841717 KEYEXPIRED 1668891673
#0 31.33 W: GPG error: http://archive.debian.org jessie-backports-sloppy InRelease: The following signatures were invalid: KEYEXPIRED 1587841717 KEYEXPIRED 1668891673
#0 31.33 W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717

Expected behaviour

Container ran fine up untill the last time i used it, which must be between now and a few weeks ago. I have seen in a commit in 20 nov 2022 that you attempted a fix and considered it a fix.

How can we reproduce the bug?

Build container without extensions: All good

Build container with any extensions (emphasis on extensions: tested this and it happens with pretty much any extention)

FROM devilbox/php-fpm-5.3:0.21 AS php-build-ext
RUN apt-get -y update &&
apt-get install -y --no-install-recommends
git
libzip-dev

Host Operating System

Linux

Host Platform (amd64, arm64, other)

amd64

(Linux only) Is SELinux enabled?

I am not on Linux

Docker version

3.7

Log: docker logs

> [php-go 2/2] RUN apt-get -y update &&     apt-get install -y --no-install-recommends         git         golang     &&     mkdir -p /tmp/go &&     GOPATH=/tmp/go go get github.com/mailhog/mhsendmail:
#0 2.240 Ign http://archive.debian.org jessie InRelease
#0 2.403 Get:1 http://archive.debian.org jessie-backports InRelease [166 kB]
#0 4.175 Get:2 http://archive.debian.org jessie-backports-sloppy InRelease [54.5 kB]
#0 4.320 Get:3 http://archive.debian.org jessie Release.gpg [2420 B]
#0 4.504 Get:4 http://archive.debian.org jessie Release [148 kB]
#0 4.734 Ign http://archive.debian.org jessie-backports InRelease
#0 4.862 Get:5 http://archive.debian.org jessie-backports/main arm64 Packages [1115 kB]
#0 5.323 Ign http://archive.debian.org jessie-backports-sloppy InRelease
#0 5.328 Ign http://archive.debian.org jessie Release
#0 6.855 Get:6 http://archive.debian.org jessie-backports-sloppy/main arm64 Packages [28.7 kB]
#0 7.055 Get:7 http://archive.debian.org jessie/main arm64 Packages [8593 kB]
#0 14.50 Fetched 10.1 MB in 12s (836 kB/s)
#0 14.50 Reading package lists...
#0 16.01 W: GPG error: http://archive.debian.org jessie-backports InRelease: The following signatures were invalid: KEYEXPIRED 1587841717 KEYEXPIRED 1668891673
#0 16.01 W: GPG error: http://archive.debian.org jessie-backports-sloppy InRelease: The following signatures were invalid: KEYEXPIRED 1587841717 KEYEXPIRED 1668891673
#0 16.01 W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717
#0 16.52 Reading package lists...
#0 18.02 Building dependency tree...
#0 18.09 Reading state information...
#0 18.13 Some packages could not be installed. This may mean that you have
#0 18.13 requested an impossible situation or if you are using the unstable
#0 18.13 distribution that some required packages have not yet been created
#0 18.13 or been moved out of Incoming.
#0 18.13 The following information may help to resolve the situation:
#0 18.13
#0 18.13 The following packages have unmet dependencies:
#0 18.13  golang : Depends: golang-doc (>= 2:1.3.3-1) but it is not going to be installed
#0 18.13 E: Unable to correct problems, you have held broken packages.

(Optional) Additional information

No response

OpenSSL 1.0.2g segfaults on imap_open

Looks like OpenSSL module is somehow failing whenever imap_open() function is called.

Testing is quite simple:

php -i | grep imap -A 5
php -r '$mbox = imap_open("{outlook.office365.com:993/service=imap/ssl}", "demo", "123456");'

Running these two commands should spit out some infos about the IMAP and OpenSSL modules, and finally a warning as imap_open() fails to login to the service. However, on OpenSSL v1.0.2g+ there's no such warning or any other message from the function as the process segfaults.

We've been testing a few versions lately and here are some results:

OpenSSL Compile Execution Error
1.0.1q โœ… โœ…
1.0.1u โœ… โœ…
1.0.2 โŒ โ“ Something about libcrypto
1.0.2a โŒ โ“ Same thing about libcrypto
1.0.2b โŒ โ“ Again the thing about libcrypto
1.0.2c โŒ โ“ Yet again libcrypto
1.0.2d โœ… โŒ Segmentation fault (core dumped)
1.0.2e โœ… โŒ Segmentation fault (core dumped)
1.0.2f โœ… โŒ Segmentation fault (core dumped)
1.0.2g โœ… โŒ Segmentation fault (core dumped)
1.0.2q โœ… โŒ Segmentation fault (core dumped)
1.0.2u โœ… โŒ Segmentation fault (core dumped)
1.1.0g โŒ โ“ configure: error: Cannot find OpenSSL's <evp.h>
1.1.0l โŒ โ“ configure: error: Cannot find OpenSSL's <evp.h>

We're currently testing a different matrix of versions and will get back ASAP with some other news.

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.