As the title, the basic reason for this problem is that the LNMP environment has not been built. The title of the environment is because Nginx can not parse your PHP file code, so the server will be the PHP suffix file for general file processing. Most of these problems appear on the PHP-FPM node. Therefore, we should start from this aspect.
1. Check the Nginx configuration, parsing the static HTML file is not a problem;
2. Check whether the normal operation of PHP-FPM, (start the service after the terminal execution: Ps-ef |grep php-fpm can check);
3. Check nginx.conf configuration, mainly check the following content:
Check Nginx Configuration
Check the original by default configuration Fastcgi_param script_filename/scripts$fastcgi_script_name;
Whether modified for Fastcgi_param script_filename $document _root$fastcgi_script_name;
after confirmation, restart the related services. or reboot the Nginx related services directly, and make sure that the related services are working properly.