Sign inSign up

paliari/php7-apache

By paliari

Updated about 7 years ago

Image PHP 7 and Apache

Image
0

10K+

paliari/php7-apache repository overview

docker-php7-apache

Docker image PHP 7 and Apache

Versioning
Docker TagGit ReleaseApache VersionPHP VersionDebian Version
latestMaster Branch2.4.257.3.5GNU/Linux 9
<= 1.0.4Master Branch2.4.257.3.4GNU/Linux 9
1.0.4-xdebugMaster Branch2.4.257.3.5GNU/Linux 9

Quick Start

To pull from docker hub:

docker pull paliari/php7-apache:latest
Running

To simply run the container:

sudo docker run -d paliari/php7-apache

sduo docker run -p 80:80 -d -e 'WEBROOT=/var/www/html/public' -e 'SET_PHP_INI_ENV=production' -e 'PHP_MEM_LIMIT=20' -e 'PHP_POST_MAX_SIZE=10' -e 'PHP_UPLOAD_MAX_FILESIZE=10' paliari/php7-apache:latest
Environments custom
NameTypeDefaultInfo
WEBROOTstring/var/www/htmlSet custom webroot
PHP_MEM_LIMITinteger2048Define PHP memory limit in MB
PHP_POST_MAX_SIZEinteger100Define PHP post max size in MB
PHP_UPLOAD_MAX_FILESIZEinteger100Define PHP upload max filesize in MB
TIMEZONEstringUTCSet custom timezone
SET_PHP_INI_ENVenum(development, production)If defined, create /usr/local/etc/php/php.ini (recommended in production)
CACHEinteger1Enable or disable opcache

The Apache default-ssl.conf makes the require


IncludeOptional conf-available/ssl-private*.conf

For SSL custom config, you can mount the volume

  • /etc/apache2/conf-available/ssl-private<-name>.conf

For SSL certificates you must mount the volumes

  • /etc/apache2/ssl/cert.crt
  • /etc/apache2/ssl/cert.key
  • /etc/apache2/ssl/ca.pem

Example:

docker run -v ssl.conf:/etc/apache2/conf-available/ssl-private-you-app.conf \
  -v your-cert.pem:/etc/apache2/ssl/cert.crt \
  -v your-cert.key:/etc/apache2/ssl/cert.key \
  -v your-ca.pem:/etc/apache2/ssl/ca.pem \
  paliari/php7-apache:latest

Examples

Examples

Author

Tag summary

Content type

Image

Digest

Size

277.6 MB

Last updated

over 7 years ago

docker pull paliari/php7-apache