From 8c1a409563f5d74a9761c9c9c34768ce5efcc24e Mon Sep 17 00:00:00 2001 From: vickytechkey Date: Tue, 8 Sep 2026 20:48:09 +0530 Subject: [PATCH] Upgrade PHP to 8.4 and use php8.4-fpm.sock in Nginx config --- .forgejo/workflows/setup-ec2.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/setup-ec2.yml b/.forgejo/workflows/setup-ec2.yml index 736f66ab..be081b2b 100644 --- a/.forgejo/workflows/setup-ec2.yml +++ b/.forgejo/workflows/setup-ec2.yml @@ -27,10 +27,10 @@ jobs: sudo apt-get upgrade -y sudo apt-get install -y software-properties-common curl git unzip nginx supervisor redis-server - # 2. Add PHP repository and install PHP 8.2 with required extensions + # 2. Add PHP repository and install PHP 8.4 with required extensions sudo add-apt-repository -y ppa:ondrej/php sudo apt-get update -y - sudo apt-get install -y php8.2-fpm php8.2-cli php8.2-pgsql php8.2-mbstring php8.2-xml php8.2-curl php8.2-zip php8.2-bcmath php8.2-intl php8.2-redis + sudo apt-get install -y php8.4-fpm php8.4-cli php8.4-pgsql php8.4-mbstring php8.4-xml php8.4-curl php8.4-zip php8.4-bcmath php8.4-intl php8.4-redis php8.4-gd # 3. Install Composer (PHP Package Manager) if ! command -v composer &> /dev/null; then @@ -110,7 +110,7 @@ jobs: error_page 404 /index.php; location ~ \.php$ { - fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; + fastcgi_pass unix:/var/run/php/php8.4-fpm.sock; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; include fastcgi_params; }