Is the nginx service built with cenots7 downloaded to access the .php file?

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?

Apr.30,2021

is php installed


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!

Menu