From bbbe21150a1f321212af08d4044547a5c714bbb9 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 18 Dec 2024 14:17:00 -0500 Subject: [PATCH] update PHP --- Nginx/Server Blocks/libraryofcode.org.conf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Nginx/Server Blocks/libraryofcode.org.conf b/Nginx/Server Blocks/libraryofcode.org.conf index bf0715a..7bb0fb3 100644 --- a/Nginx/Server Blocks/libraryofcode.org.conf +++ b/Nginx/Server Blocks/libraryofcode.org.conf @@ -14,13 +14,16 @@ server { } location ~ \.php$ { - #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini include fastcgi_params; fastcgi_intercept_errors on; - fastcgi_pass unix:/run/php/php7.3-fpm.sock; - #The following parameter can be also included in fastcgi_params file - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + # Point to PHP 8.1-FPM socket + fastcgi_pass unix:/run/php/php8.1-fpm.sock; + + # Alternatively, use a TCP address if configured: + # fastcgi_pass 127.0.0.1:9000; + + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {