Nothing Special   »   [go: up one dir, main page]

Skip to content

sanvu88/docker-php-fpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hostvn.net - Tên miền, Web Hosting, Email, VPS & Dịch vụ lưu trữ Website

#####################################################################################

About Hostvn.net Docker PHP-FPM

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 (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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published