Sign inSign up

pixelhyperlinkdockers/phpserver

By pixelhyperlinkdockers

•Updated over 9 years ago

php server

Image
0

1.1K

pixelhyperlinkdockers/phpserver repository overview

This image contains base Ubuntu Server 16.04 LTS OS with PHP, and made the source code freely available under the MIT⁠.

⁠Docker image details:-

Images includes:

  • Ubuntu: Ubuntu Server 16.04 LTS buit using pixelhyperlinkdockers/ubuntu image

Images includes Ubunu Packages:

  • php7.1: server-side, HTML-embedded scripting language (metapackage)
  • libapache2-mod-php7.1: server-side, HTML-embedded scripting language (Apache 2 module)
  • php7.1-cli: command-line interpreter for the php7.1 scripting language
  • php7.1-common: Common files for packages built from the php7.1 source
  • php7.1-curl: CURL module for php7.1
  • php7.1-fpm: server-side, HTML-embedded scripting language (FPM-CGI binary)
  • php7.1-gd: GD module for php7.1
  • php7.1-intl: internationalisation module for php7.1
  • php7.1-json: JSON module for php7.1
  • php7.1-mbstring: Mbstring is used to convert strings to different encodings
  • php7.1-mysql: MySQL module for php7.1
  • php7.1-opcache: Opcache module for php7.1
  • php7.1-xml: XML module for php7.1
  • php7.1-zip: Zip module for php7.1
  • php-imagick: Provides a wrapper to the ImageMagick library
  • php5-dev: Files for PHP5 module development
  • mcrypt: Replacement for old unix crypt(1)
  • php7.1-mcrypt: MCrypt module for php7.1

For Development"

  • php7.1-phpdbg: server-side, HTML-embedded scripting language (PHPDBG binary)
  • php-xdebug: Xdebug Module for PHP

Enabled modules: mcrypt, rewrite, actions, fastcgi, alias, expires, headers, remoteip, ssl, proxy, proxy_fcgi, setenvif

⁠Pre-Setup
$ mkdir -p data_storage/www data_storage/log/apache2
$ echo -e "<html>\n<body>\n<?php\necho phpinfo();\n?>\n</body>\n</html>" > data_storage/www/index.php
⁠Building Container using image
$ docker build -t pixelhyperlinkdockers/phpserver ./
OR
$ docker-compose build
⁠Running the Container
$ docker run --name phpserver -ti -p 22:22 -p 80:80 -p 443:443 -e SSH_USER=$user -e SSH_USER_PASSWORD=$password -e APACHE_USER=$user -v ./data_storage/www:/www/base_site -v ./data_storage/log/apache2:/var/log/apache2 pixelhyperlinkdockers/phpserver
OR
$ docker-compose up -d

Tag summary

Content type

Image

Digest

Size

304.6 MB

Last updated

over 9 years ago

docker pull pixelhyperlinkdockers/phpserver