Skip to content

smoczynski/docker-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP with fpm

PHP docker image based on official one with pre-installed extensions and tools.

Download

Grab it by running

docker pull smoczynski/php:7.4.3

Run

Type

docker run --name some-php -d smoczynski/php:7.4.3

That will start php-fpm daemon listening on 9000 port with PID 1.

Logs are written to STDOUT, examine them running

docker logs some-php -f

Configuration

Main PHP configuration file can be found at /usr/local/etc/php/php.ini and extra ones in /usr/local/etc/php/conf.d directory (every file with .ini will be parsed and included). Provided php.ini file is suitable for development.

Main php-fpm configuration is here /usr/local/etc/php-fpm.conf while pools configuration should be place in /usr/local/etc/php-fpm.d with .conf extension.

To tweak anyting you can provide your own configuration file in your derived images or edit existing one and tell php-fpm daemon to reload itself by sending USR2 signal

kill -USR2 1

Pre-installed extensions

  • bcmath
  • calendar
  • ctype
  • dba
  • dom
  • exif
  • fileinfo
  • ftp
  • gettext
  • gd
  • hash
  • iconv
  • intl
  • mbstring
  • mongodb
  • opcache
  • pcntl
  • pdo
  • pdo_pgsql
  • pdo_mysql
  • posix
  • session
  • simplexml
  • soap
  • sockets
  • xsl
  • zip

Installed PHP software/tools

Debugers

  • xdebug (configuration file: /usr/local/etc/php/conf.d/xdebug.ini)
  • phpdbg

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published