LEMP Troubleshooting - validation error?

curl on the localhost returns a valid result:

Hi @PanamaJoe

A review link for this lab would help a lot to assist you.

Regards.

1 Like

Hello @Santosh_KodeKloud

https://engineer.kodekloud.com/public-review?task_id=64071fff741b204d59fbe97d&user_id=650d7410e33cff06dfd9ff06

Hi @PanamaJoe

I reviewed the task and here’s a relevant block in the nginx configuration that needs some fixes on two servers.

Confirm the configs in nginx.conf:

  • server.listen: needs to listen on port 80
  • server.index should contain index.php
  • server.root should point to /var/www.html/
  • The location for PHP fastcgi_pass should point to unix:/var/opt/remi/php74/run/php-fpm/www.sock

Once these are configured and checked, restart the nginx service and check either with the LBR button on the top right of the page or curl http://localhost

These steps should resolve the task as a pass.

Regards.

1 Like

thank you so much santosh for your help