Directory where site is accessible
Directory where the config is stored (php release, postfix).
TZ=Europe/Paris
LOCALE_GEN=fr_FR.UTF8 UTF-8
LANG=fr_FR.utf8
LC_ALL=fr_FR.utf8
USE_SENDMAIL=1
POSTFIX_RELAYHOST=<host_ip>
Make an alias from /www to $ALTERNATE_LINK_WWW
PHP_FPM_LISTEN=9000
PHP_USER=1000
PHP_GROUP=1000
PHP_EXPOSE=Off
All postfix config are in 'config' directory and is up when docker start
You need to change user and group variables in ./config/php/7.?/php-fpm.d/www.conf Put the same UID and GID from your apache/nginx host, like
user = 33
group = 33
Activate module fcgi
a2enmod proxy_fcgi
and restart apache
In your vhosts put:
DocumentRoot /var/www/mysite
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:**9000**/www/mysite/$1
docker run -p 9000:9000 -v /var/www/:/www --name phpfpm7 vdeapps/phpfpm7
make /usr/local/bin/php7.? and put:
#!/bin/bash
CMD="docker exec -it vdeapps_phpfpm7?_debian /usr/bin/php $*"
$CMD
Content type
Image
Digest
Size
127.8 MB
Last updated
almost 7 years ago
docker pull vdeapps/phpfpm7_debian:7.3