php info page

Tee command to create the test.php file

sudo tee /var/www/html/test.php > /dev/null <<'EOF'
<?php 
phpinfo();
?>
EOF
JavaScript

Update your Nginx Default server block

nano /etc/nginx/sites-available/default
JavaScript

remove commented section

adapt to current version 8.3, and make sure that only one fastcgi_pass is active.

Restart nginx

systemctl restart nginx
JavaScript

Check nginx status

systemctl status nginx
JavaScript

Test using the server IP Address

http://SERVER-IP/test.php

Delete test page

sudo rm /var/www/html/test.php
JavaScript

Install Multiple PHP Versions