Day 20: Configure Nginx + PHP-FPM Using Unix

i don"t understnad what happen?

Same issue for me too. they asked to install php-fpm - 8.1

available only 8.0.30, but error showing for wrong version

Anyone able to fix this
Installed the correct versions, still similar error

Hi guys,

This is a similar case to this post. Please take a look and let me know if you have any questions.

Also see Configure Nginx + PHP-FPM Using Unix Sock error - #19 by Alistair_KodeKloud

@raymond.baoly
maybe can you helpme


@raymond.baoly
maybe check

c/nginx/nginx.conf

 server {
        listen       8091 ;
        listen       [::]:8091;
        server_name  stapp03;
        root /var/www/html;
 index index.php index.html;

 location / {
 try_files $uri $uri/ =404;
 }

 location ~\.php$ {
    include fastcgi_params;
    fastcgi_pass unix:/var/run/php-fpm/default.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

  error_page 404 /404.html;
  error_page 500 502 503 504 /50x.html;
```user = nginx

group = nginx

listen = /var/run/php-fpm/default.sock

listen.owner = nginx

listen.group = nginx

listen.mode = 0660

i dont understatn happen

Hi @sebascross

When you check the application with curl, it should show the message in the screenshot below, not the PHP info index page. Please don’t overwrite the current index.php file.

no show messages diferent

please can you help me maybe with sesssion phears i not import time please

The solution is here. I tested it 5 days ago. It works.