title: PHP File not loading in nginx server
body: <p>I tried installing LEMP in Debian 11 using Nginx, MySQL and PHP7.4.
  I have the following services running</p>
  <pre><code>systemctl start php7.4-fpm
  systemctl start nginx
  </code></pre>
  <p>I created a file <code>info.php</code> with <code>&lt;?php phpinfo(); ?&gt;</code> inside <code>/var/www/html</code> and has the appropriate ownership rights set with <code>755</code> and <code>user:www-data</code>.</p>
  <p>When I load the <code>http://localhost</code> I get the default nginx welcome page.
  But when I try to load <code>http://localhost/info.php</code> the server tries to download the info.php file instead of loading the page. How can I resolve this situation. Earlier I had issues when running apache2 localhost loading blank page ie why I moved to nginx.
  Please help.</p>