Browse Source

Move to php83 as php82 active support ended late 2024

Bubka 4 months ago
parent
commit
c310049907
5 changed files with 25 additions and 25 deletions
  1. 1 1
      .travis.yml
  2. 14 14
      Dockerfile
  3. 1 1
      README.md
  4. 1 1
      composer.json
  5. 8 8
      docs/debian-setup.md

+ 1 - 1
.travis.yml

@@ -6,8 +6,8 @@ env:
 language: php
 language: php
 
 
 php:
 php:
-  - 8.2
   - 8.3
   - 8.3
+  - 8.4
 
 
 services:
 services:
   - mysql
   - mysql

+ 14 - 14
Dockerfile

@@ -1,7 +1,7 @@
 ARG BUILDPLATFORM=linux/amd64
 ARG BUILDPLATFORM=linux/amd64
 ARG TARGETPLATFORM
 ARG TARGETPLATFORM
-ARG ALPINE_VERSION=3.19
-ARG PHP_VERSION=8.2-alpine${ALPINE_VERSION}
+ARG ALPINE_VERSION=3.21
+ARG PHP_VERSION=8.3-alpine${ALPINE_VERSION}
 ARG COMPOSER_VERSION=2.7
 ARG COMPOSER_VERSION=2.7
 ARG SUPERVISORD_VERSION=v0.7.3
 ARG SUPERVISORD_VERSION=v0.7.3
 
 
@@ -46,28 +46,28 @@ COPY --from=supervisord --chown=${UID}:${GID} /bin /usr/local/bin/supervisord
 # Install PHP and PHP system dependencies
 # Install PHP and PHP system dependencies
 RUN apk add --update --no-cache \
 RUN apk add --update --no-cache \
     # PHP
     # PHP
-    php82 \
+    php83 \
     # Composer dependencies
     # Composer dependencies
-    php82-phar \
+    php83-phar \
     # PHP SQLite, MySQL/MariaDB & Postgres drivers
     # PHP SQLite, MySQL/MariaDB & Postgres drivers
-    php82-pdo_sqlite php82-sqlite3 php82-pdo_mysql php82-pdo_pgsql php82-pgsql \
+    php83-pdo_sqlite php83-sqlite3 php83-pdo_mysql php83-pdo_pgsql php83-pgsql \
     # PHP extensions
     # PHP extensions
-    php82-xml php82-gd php82-mbstring php82-tokenizer php82-fileinfo php82-bcmath php82-ctype php82-dom php-redis \
+    php83-xml php83-gd php83-mbstring php83-tokenizer php83-fileinfo php83-bcmath php83-ctype php83-dom php-redis \
     # Runtime dependencies
     # Runtime dependencies
-    php82-session php82-openssl \
+    php83-session php83-openssl \
     # Nginx and PHP FPM to serve over HTTP
     # Nginx and PHP FPM to serve over HTTP
-    php82-fpm nginx
+    php83-fpm nginx
 
 
 # PHP FPM configuration
 # PHP FPM configuration
 # Change username and ownership in php-fpm pool config
 # Change username and ownership in php-fpm pool config
-RUN sed -i '/user = nobody/d' /etc/php82/php-fpm.d/www.conf && \
-    sed -i '/group = nobody/d' /etc/php82/php-fpm.d/www.conf && \
-    sed -i '/listen.owner/d' /etc/php82/php-fpm.d/www.conf && \
-    sed -i '/listen.group/d' /etc/php82/php-fpm.d/www.conf
+RUN sed -i '/user = nobody/d' /etc/php83/php-fpm.d/www.conf && \
+    sed -i '/group = nobody/d' /etc/php83/php-fpm.d/www.conf && \
+    sed -i '/listen.owner/d' /etc/php83/php-fpm.d/www.conf && \
+    sed -i '/listen.group/d' /etc/php83/php-fpm.d/www.conf
 # Pre-create files with the correct permissions
 # Pre-create files with the correct permissions
 RUN mkdir /run/php && \
 RUN mkdir /run/php && \
-    chown ${UID}:${GID} /run/php /var/log/php82 && \
-    chmod 700 /run/php /var/log/php82
+    chown ${UID}:${GID} /run/php /var/log/php83 && \
+    chmod 700 /run/php /var/log/php83
 
 
 # NGINX
 # NGINX
 # Clean up
 # Clean up

+ 1 - 1
README.md

@@ -60,7 +60,7 @@ Sensitive data stored in the database can be encrypted to protect them against d
 
 
 ## Requirements
 ## Requirements
 
 
-* [![Requires PHP8](https://img.shields.io/badge/php-^8.2-red.svg?style=flat-square)](https://secure.php.net/downloads.php)
+* [![Requires PHP8](https://img.shields.io/badge/php-^8.3-red.svg?style=flat-square)](https://secure.php.net/downloads.php)
 * See [Laravel server requirements](https://laravel.com/docs/installation#server-requirements)
 * See [Laravel server requirements](https://laravel.com/docs/installation#server-requirements)
 * Any database [supported by Laravel](https://laravel.com/docs/database)
 * Any database [supported by Laravel](https://laravel.com/docs/database)
 
 

+ 1 - 1
composer.json

@@ -14,7 +14,7 @@
         }
         }
     ],
     ],
     "require": {
     "require": {
-        "php": "^8.2",
+        "php": "^8.3",
         "ext-bcmath": "*",
         "ext-bcmath": "*",
         "ext-ctype": "*",
         "ext-ctype": "*",
         "ext-dom": "*",
         "ext-dom": "*",

+ 8 - 8
docs/debian-setup.md

@@ -22,11 +22,11 @@ This applies to Debian Buster, but similar instructions should apply for other D
 
 
     ```bash
     ```bash
     apt-get install -y --no-install-recommends \
     apt-get install -y --no-install-recommends \
-    php8.2 \
-    php8.2-sqlite3 php8.2-mysql \
-    php-xml php8.2-gd php8.2-mbstring \
+    php8.3 \
+    php8.3-sqlite3 php8.3-mysql \
+    php-xml php8.3-gd php8.3-mbstring \
     unzip wget ca-certificates \
     unzip wget ca-certificates \
-    php8.2-fpm nginx
+    php8.3-fpm nginx
     ```
     ```
 
 
 ## Download the code
 ## Download the code
@@ -71,7 +71,7 @@ http {
       error_page 404 /index.php;
       error_page 404 /index.php;
 
 
       location ~ \.php$ {
       location ~ \.php$ {
-          fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
+          fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
           fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
           fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
           include fastcgi_params;
           include fastcgi_params;
       }
       }
@@ -155,14 +155,14 @@ chmod 500 /usr/local/bin/composer
 
 
     ```bash
     ```bash
     mkdir -p /run/php /www/data/.composer
     mkdir -p /run/php /www/data/.composer
-    touch /run/nginx.pid /var/log/php8.2-fpm.log
+    touch /run/nginx.pid /var/log/php8.3-fpm.log
     chown -R www-data \
     chown -R www-data \
-      /var/log/php8.2-fpm.log \
+      /var/log/php8.3-fpm.log \
       /run/nginx.pid \
       /run/nginx.pid \
       /run/php \
       /run/php \
       /www/data/.composer
       /www/data/.composer
     chmod 700 /run/php /www/data/.composer
     chmod 700 /run/php /www/data/.composer
-    chmod 600 /var/log/php8.2-fpm.log
+    chmod 600 /var/log/php8.3-fpm.log
     ```
     ```
 
 
 ## Change user
 ## Change user