location ~ \.php$ {
include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.3-fpm.sock;
+ fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
}
apt update
apt install -y software-properties-common python-software-properties
add-apt-repository -yu ppa:ondrej/php
-apt install -y git nginx curl php7.3-fpm php7.3-curl php7.3-mbstring php7.3-ldap \
-php7.3-tidy php7.3-xml php7.3-zip php7.3-gd php7.3-mysql mysql-server-5.7
+apt install -y git nginx curl php7.4 php7.4-fpm php7.4-curl php7.4-mbstring php7.4-ldap \
+php7.4-tidy php7.4-xml php7.4-zip php7.4-gd php7.4-mysql mysql-server-5.7
# Set up database
DB_PASS="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13)"