Upgrade PHP to 8.4 and use php8.4-fpm.sock in Nginx config
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 47s
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 47s
This commit is contained in:
parent
140a1f58c1
commit
8c1a409563
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue