From 0b30a3a545a15a8d8e9eb3773ff6ffd608b569fd Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Fri, 10 Feb 2017 09:12:23 +0000 Subject: [PATCH] Documentation for #33 installing php modules. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 5382ae6..5f4fb52 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,22 @@ Please see the [Scripting and templating guide](https://github.com/ngineered/ngi ### Lets Encrypt support This container includes support to easily manage lets encrypt certificates. Please see the [Lets Encrypt guide](https://github.com/ngineered/nginx-php-fpm/blob/master/docs/lets_encrypt.md) for more details. +### Install PHP Modules + +First of all drop into the container: +``` +docker exec -t -i nginx /bin/bash +``` +Then configure and install your module: +``` +/usr/local/bin/docker-php-ext-configure sockets +/usr/local/bin/docker-php-ext-install sockets +``` +Now restart php-fpm: +``` +supervisorctl restart php-fpm +``` + ## Special Git Features Specify the ```GIT_EMAIL``` and ```GIT_NAME``` variables for this to work. They are used to set up git correctly and allow the following commands to work.