To solve the problem of nginx accessing PHP file into download

Nginx browses.php files into downloads: this is because Nginx is not set to pass to the PHP interpreter

when it touches PHP files

  • check if the php-fpm process is working properly
ps aux|grep 'php-fpm'

Open PHP – FPM