My task to install nginx with php-fpm working correctly still it is failed two times

My task to install nginx with php-fpm working correctly still it is failed two times.Please refer screenshots

Which lab is this? Is it a “100 Days of Devops” lab (in which case, which day is it?) or is this a regular KodeKloud Engineer lab (in which case, what group/level/task name?)?

Hello.

I see from your screenshot that web server (nginx) just response with plain file (as PHP code) and not execute it on server’s side.

So, you need install/configure php-fpm correctly and proceed with configuration on nginx config file. The index.php has to be executed on server’s side, it is the CODE (sorry for uppercase) and not a just plain file.

Hope this helps.