What are the potential pitfalls of installing PHP on a server with Nginx?

One potential pitfall of installing PHP on a server with Nginx is that Nginx may not be configured to properly handle PHP files. This can result in PHP code not being executed correctly or displaying as plain text in the browser. To solve this issue, you need to configure Nginx to pass PHP requests to a PHP processor, such as PHP-FPM. ```nginx server { listen 80; server_name example.com; root /var/www/html; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; } } ```