Browse Source

PHP version 7.3 -> 7.4

Vova Tkach 3 years ago
parent
commit
f13c3905d2
4 changed files with 15 additions and 15 deletions
  1. 10 10
      Dockerfile
  2. 1 1
      docker/etc/nginx/sites-available/default
  3. 3 3
      docker/etc/php/7.4/fpm/php-fpm.conf
  4. 1 1
      docker/start.sh

+ 10 - 10
Dockerfile

@@ -1,23 +1,23 @@
 FROM debian:latest
 MAINTAINER Vova Tkach <vladimirok5959@gmail.com>
 
-ENV PHP_VERSION=7.3
+ENV PHP_VERSION=7.4
 
 ARG DEBIAN_FRONTEND=noninteractive
 
 RUN apt-get -y update && \
 	apt-get -y upgrade && \
 	apt-get install -y nginx && \
-	apt-get install -y php7.3-fpm && \
-	apt-get install -y php7.3-cgi && \
-	apt-get install -y php7.3-gd && \
-	apt-get install -y php7.3-zip && \
-	apt-get install -y php7.3-curl && \
-	apt-get install -y php7.3-mysql && \
-	apt-get install -y php7.3-sqlite && \
-	apt-get install -y php7.3-mbstring && \
+	apt-get install -y php7.4-fpm && \
+	apt-get install -y php7.4-cgi && \
+	apt-get install -y php7.4-gd && \
+	apt-get install -y php7.4-zip && \
+	apt-get install -y php7.4-curl && \
+	apt-get install -y php7.4-mysql && \
+	apt-get install -y php7.4-sqlite && \
+	apt-get install -y php7.4-mbstring && \
 	/etc/init.d/nginx stop && \
-	/etc/init.d/php7.3-fpm stop && \
+	/etc/init.d/php7.4-fpm stop && \
 	rm /var/www/html/* && \
 	echo "" >> /root/.profile && \
 	echo "TIME_ZONE=\$(cat /etc/timezone)" >> /root/.profile && \

+ 1 - 1
docker/etc/nginx/sites-available/default

@@ -23,7 +23,7 @@ server {
 	location ~ \.php$ {
 		include fastcgi_params;
 		fastcgi_index index.php;
-		fastcgi_pass unix:/run/php/php7.3-fpm.sock;
+		fastcgi_pass unix:/run/php/php7.4-fpm.sock;
 		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 	}
 }

+ 3 - 3
docker/etc/php/7.3/fpm/php-fpm.conf → docker/etc/php/7.4/fpm/php-fpm.conf

@@ -14,14 +14,14 @@
 ; Pid file
 ; Note: the default prefix is /var
 ; Default Value: none
-pid = /run/php/php7.3-fpm.pid
+pid = /run/php/php7.4-fpm.pid
 
 ; Error log file
 ; If it's set to "syslog", log is sent to syslogd instead of being written
 ; into a local file.
 ; Note: the default prefix is /var
 ; Default Value: log/php-fpm.log
-; error_log = /var/log/php7.3-fpm.log
+; error_log = /var/log/php7.4-fpm.log
 error_log = /dev/stderr
 
 ; syslog_facility is used to specify what type of program is logging the
@@ -142,4 +142,4 @@ process.max = 1
 ; Relative path can also be used. They will be prefixed by:
 ;  - the global prefix if it's been set (-p argument)
 ;  - /usr otherwise
-include=/etc/php/7.3/fpm/pool.d/*.conf
+include=/etc/php/7.4/fpm/pool.d/*.conf

+ 1 - 1
docker/start.sh

@@ -8,7 +8,7 @@ export TZ="${TIME_ZONE}"
 /usr/bin/printenv > /var/www/.env
 
 # PHP service
-/etc/init.d/php7.3-fpm start
+/etc/init.d/php7.4-fpm start
 
 # Nginx
 /usr/sbin/nginx