Sign inSign up

akhmelik/php7

By akhmelik

•Updated over 9 years ago

This Docker container implements a last generation LAMP stack with a set of popular PHP modules.

Image
0

1.1K

akhmelik/php7 repository overview

⁠AKhmelik/php7

This Docker container implements a last generation LAMP stack with a set of popular PHP modules. Includes support for Composer⁠, Bower⁠ and npm⁠ package managers and a Postfix service to allow sending emails through PHP mail()⁠ function.

Includes the following components:

  • Ubuntu 16.04 LTS Xenial Xerus base image.
  • Apache HTTP Server 2.4
  • Postfix 2.11
  • PHP 7
  • PHP modules
    • php-bz2
    • php-cgi
    • php-cli
    • php-common
    • php-curl
    • php-dbg
    • php-dev
    • php-enchant
    • php-fpm
    • php-gd
    • php-gmp
    • php-imap
    • php-interbase
    • php-intl
    • php-json
    • php-ldap
    • php-mcrypt
    • php-mysql
    • php-odbc
    • php-opcache
    • php-pgsql
    • php-phpdbg
    • php-pspell
    • php-readline
    • php-recode
    • php-snmp
    • php-sqlite3
    • php-sybase
    • php-tidy
    • php-xmlrpc
    • php-xsl
  • Development tools
    • git
    • composer
    • npm / nodejs
    • bower
    • vim
    • tree
    • nano
    • ftp
    • curl

⁠Installation from Docker registry hub

You can download the image using the following command:

docker pull AKhmelik/php7

⁠Exposed port and volumes

The image exposes ports 80 and 3306, and exports four volumes:

  • /var/log/httpd, containing Apache log files.
  • /var/log/mysql containing MariaDB log files.
  • /var/www/html, used as Apache's DocumentRoot directory⁠.
  • /var/lib/mysql, where MariaDB data files are stores.

The user and group owner id for the DocumentRoot directory /var/www/html are both 33 (uid=33(www-data) gid=33(www-data) groups=33(www-data)).

The user and group owner id for the MariaDB directory /var/log/mysql are 105 and 108 repectively (uid=105(mysql) gid=108(mysql) groups=108(mysql)).

⁠Use cases

⁠Create a temporary container for testing purposes:
	docker run -i -t --rm AKhmelik/php7 bash
⁠Create a temporary container to debug a web app:
	docker run --rm -p 8080:80 -e LOG_STDOUT=true -e LOG_STDERR=true -e LOG_LEVEL=debug -v /my/data/directory:/var/www/html AKhmelik/php7

Tag summary

Content type

Image

Digest

Size

347.8 MB

Last updated

over 9 years ago

docker pull akhmelik/php7