is the nginx service built with cenots7 downloading the .php file?
 Baidu for a long time, the above answer is useless, various attempts are still the same download status, 
 how to solve this specific problem? 
is the nginx service built with cenots7 downloading the .php file?
 Baidu for a long time, the above answer is useless, various attempts are still the same download status, 
 how to solve this specific problem? 
 first of all, you need to check whether your server has an environment for  php-fpm , that is, to parse  .php  files, or you can install it  refer to the article . After that, check the corresponding port through  netstat-nlpt | grep php-fpm . Finally, modify the configuration of  nginx  and parse all  .php  files to the corresponding port (usually default: 9000), so that you will not download the file, but through parsing the page or content. 
check whether there is header, I encountered last time, and I wrote it wrong when setting utf8 with header. As a result, I downloaded it directly!
Environment Information: centos7.4 php7.2 mysql5.7 1.php is compiled and installed 2.MySQL is installed with rpm mysql-community-client-5.7.23-1.el7.x86_64.rpm mysql-community-common-5.7.23-1.el7.x86_64.rpm mysql-community-devel-5.7.23-1.el7.x86_6...
how to permanently modify php-fpm to specify the loaded php.ini path, I use usr local php sbin php-fpm-y usr local php etc php-fpm.conf-c usr local php etc php.ini after restarting systemctl restart php-fpm.service, the Loaded Configuration F...