Sign inSign up

vdeapps/phpfpm5_debian

By vdeapps

•Updated about 7 years ago

Only PHP-FPM 5 + CLI + SENDMAIL

Image
0

135

vdeapps/phpfpm5_debian repository overview

⁠PHP-FPM 5 on Debian

⁠Volumes

⁠/var/www:/www

Directory where site is accessible

⁠./config:/config

Directory where the config is stored (php release, postfix).

⁠Variables

⁠USE_SENDMAIL=1

Set this variable to use sendmail host from php

⁠POSTFIX_RELAYHOST=

Set the relay_host for the postfix

Make an alias from /www to $ALTERNATE_LINK_WWW

⁠Ports

9000

⁠Postfix config

All postfix config are in 'config' directory and is up when docker start

⁠Php config

You need to change user and group variables in ./config/php/5.?/php-fpm.d/www.conf⁠ Put the same UID and GID from your apache/nginx host, like user = 33 group = 33

⁠Apache2 configuration

⁠Modules

Activate module fcgi

a2enmod proxy_fcgi

and restart apache

⁠VHOST configuration

In your vhosts put:

DocumentRoot /var/www/mysite
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:**9000**/www/mysite/$1

⁠Run

docker run -p 9000:9000 -v /var/www/:/www --name phpfpm5 vdeapps/phpfpm5

⁠Mode CLI

make /usr/local/bin/php5.? and put:
#!/bin/bash
CMD="docker exec -it vdeapps_phpfpm5?_debian /usr/bin/php $*"
$CMD

Tag summary

Content type

Image

Digest

Size

112.9 MB

Last updated

about 7 years ago

docker pull vdeapps/phpfpm5_debian:5.6