Quellcode durchsuchen

Add Postgre SQL Support for php-fpm & edit webserver session storage location

Geraint Dong vor 7 Jahren
Ursprung
Commit
3cc917c9de
6 geänderte Dateien mit 36 neuen und 3 gelöschten Zeilen
  1. 11 0
      php-fpm/Dockerfile-56
  2. 11 0
      php-fpm/Dockerfile-70
  3. 11 0
      php-fpm/Dockerfile-71
  4. 1 1
      php-fpm/php56.ini
  5. 1 1
      php-fpm/php70.ini
  6. 1 1
      php-fpm/php71.ini

+ 11 - 0
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:
 #####################################

+ 11 - 0
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:
 #####################################

+ 11 - 0
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:
 #####################################

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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