Nginx + PHP-FPM Using Unix Sock Error

I’m trying to do this task that is from 100-DAY DevOps and as you see in the picture I’ve done all debugging and the requirements still it says website is not setup correctly

Please if it’s possible help me with this

Hi @Mubashir7933

You can refer to this thread and see if it helps.

check this , it may be helpful : 100-Days-Of-DevOps-KodeKloud-Challenges-Solutions

most of the time its a permission and ownership issue, you can manually set the socket ownership on the socket by

sudo chown nginx:nginx /var/run/php-fpm/default.sock
sudo chmod 660 /var/run/php-fpm/default.sock

and verfy the socket ownership
ls -l /var/run/php-fpm/

and restart the services
sudo systemctl restart php-fpm
sudo systemctl restart nginx