Error with php-fpm version

For some unknown reasons when I try to complete KKE task for Linux- Level 4 "Configure nginx + php-fpm using unix sock’ task gives me error like this, despite that the correct version is installed


Can someone solve my problem: what should I do?

You need to install php which will also install the fpm component with

dnf module -y install php:8.1/common

There is a fair bit of configuration to do to make it work - this is level 4 after all.

  • php-fpm must be configured to use the right socket and also the right user. It’s default is to assume you’re using Apache - but in this you’re using nginx
  • nginx must be configured for the correct port, web files directory and to call php-fpm when it receives a request for a .php file.