Sign inSign up

hostvn/hostvn.net-php-fpm

By hostvn

•Updated over 5 years ago

PHP is developed under Nginx Docker official-customizing the configuration & adding some Extensions

Image
1

357

hostvn/hostvn.net-php-fpm repository overview

Hostvn.net Docker PHP-FPM is developed based on the PHP Docker official, not only inherits the advantages of PHP Docker official but also helps to customize the configuration and add some extensions.

⁠Quick reference

⁠Supported tags

  • latest, 8.0.6, 7.4.19, 7.3.28

⁠PHP Extensions

  • bcmath
  • bz2
  • calendar
  • Core
  • ctype
  • curl
  • date
  • dom
  • exif
  • fileinfo
  • filter
  • ftp
  • gd
  • gettext
  • hash
  • iconv
  • imagick (Only PHP 7)
  • imap
  • intl
  • json
  • ldap
  • libxml
  • mbstring
  • memcached
  • mongodb
  • mysqli
  • mysqlnd
  • openssl
  • pcre
  • PDO
  • pdo_mysql
  • pdo_pgsql
  • pdo_sqlite
  • pgsql
  • Phar
  • posix
  • readline
  • redis
  • Reflection
  • session
  • SimpleXML
  • soap
  • sockets
  • sodium
  • SPL
  • sqlite3
  • standard
  • tokenizer
  • xml
  • xmlreader
  • xmlrpc
  • xmlwriter
  • xsl
  • json
  • Zend OPcache
  • zip
  • zlib
  • igbinary

⁠Custom config

  • Opcache config: /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
  • Opcache blacklist: /usr/local/etc/php/conf.d/opcache-default.blacklist
  • Edit php parameters in: /usr/local/etc/php/conf.d/00-hostvn-custom.ini
  • You can refer to the php configuration for the website in the file: /usr/local/etc/php-fpm.d/pool.conf.example

⁠Disable functions

Edit in /usr/local/etc/php/conf.d/00-hostvn-custom.ini

exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname

⁠Composer

Install two versions of composer.

  • To use composer 2 run the command: composer
  • To use composer 1 run the command: composer1

⁠Using

docker run --name php -h php --restart always -v /root/web:/var/www/html -d hostvn/hostvn.net-php-fpm

You can refer to how to use here: https://hub.docker.com/_/php⁠

Tag summary

Content type

Image

Digest

Size

249.6 MB

Last updated

over 5 years ago

docker pull hostvn/hostvn.net-php-fpm