From 3cc917c9de7dd7735e86025a5b731f4331f42da7 Mon Sep 17 00:00:00 2001 From: Geraint Dong Date: Mon, 25 Sep 2017 17:30:30 +0700 Subject: [PATCH] Add Postgre SQL Support for php-fpm & edit webserver session storage location --- php-fpm/Dockerfile-56 | 11 +++++++++++ php-fpm/Dockerfile-70 | 11 +++++++++++ php-fpm/Dockerfile-71 | 11 +++++++++++ php-fpm/php56.ini | 2 +- php-fpm/php70.ini | 2 +- php-fpm/php71.ini | 2 +- 6 files changed, 36 insertions(+), 3 deletions(-) diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index ed8cb892..057db070 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -50,6 +50,17 @@ RUN if [ ${INSTALL_SOAP} = true ]; then \ docker-php-ext-install soap \ ;fi +##################################### +# pgsql +##################################### + +ARG INSTALL_PGSQL=false +RUN if [ ${INSTALL_PGSQL} = true ]; then \ + # Install the pgsql extension + apt-get update -yqq && \ + docker-php-ext-install pgsql \ +;fi + ##################################### # xDebug: ##################################### diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index daf214ab..7543524f 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -50,6 +50,17 @@ RUN if [ ${INSTALL_SOAP} = true ]; then \ docker-php-ext-install soap \ ;fi +##################################### +# pgsql +##################################### + +ARG INSTALL_PGSQL=false +RUN if [ ${INSTALL_PGSQL} = true ]; then \ + # Install the pgsql extension + apt-get update -yqq && \ + docker-php-ext-install pgsql \ +;fi + ##################################### # xDebug: ##################################### diff --git a/php-fpm/Dockerfile-71 b/php-fpm/Dockerfile-71 index 1210f292..a9da3955 100644 --- a/php-fpm/Dockerfile-71 +++ b/php-fpm/Dockerfile-71 @@ -50,6 +50,17 @@ RUN if [ ${INSTALL_SOAP} = true ]; then \ docker-php-ext-install soap \ ;fi +##################################### +# pgsql +##################################### + +ARG INSTALL_PGSQL=false +RUN if [ ${INSTALL_PGSQL} = true ]; then \ + # Install the pgsql extension + apt-get update -yqq && \ + docker-php-ext-install pgsql \ +;fi + ##################################### # xDebug: ##################################### diff --git a/php-fpm/php56.ini b/php-fpm/php56.ini index a455b17e..c644bee6 100644 --- a/php-fpm/php56.ini +++ b/php-fpm/php56.ini @@ -1442,7 +1442,7 @@ session.save_handler = files ; where MODE is the octal representation of the mode. Note that this ; does not overwrite the process's umask. ; http://php.net/session.save-path -;session.save_path = "/tmp" +session.save_path = "/tmp" ; Whether to use strict session mode. ; Strict session mode does not accept uninitialized session ID and regenerate diff --git a/php-fpm/php70.ini b/php-fpm/php70.ini index c8242dc0..53e3a4f9 100644 --- a/php-fpm/php70.ini +++ b/php-fpm/php70.ini @@ -1348,7 +1348,7 @@ session.save_handler = files ; where MODE is the octal representation of the mode. Note that this ; does not overwrite the process's umask. ; http://php.net/session.save-path -;session.save_path = "/tmp" +session.save_path = "/tmp" ; Whether to use strict session mode. ; Strict session mode does not accept uninitialized session ID and regenerate diff --git a/php-fpm/php71.ini b/php-fpm/php71.ini index c8242dc0..53e3a4f9 100644 --- a/php-fpm/php71.ini +++ b/php-fpm/php71.ini @@ -1348,7 +1348,7 @@ session.save_handler = files ; where MODE is the octal representation of the mode. Note that this ; does not overwrite the process's umask. ; http://php.net/session.save-path -;session.save_path = "/tmp" +session.save_path = "/tmp" ; Whether to use strict session mode. ; Strict session mode does not accept uninitialized session ID and regenerate