PHP vulnerabilities are the norm, there is not much that can be done to prevent uploads of malicious files on a PHP site when there are world writable directories especially when your website is using a well known opensource community driven software product to power your website.
When I first installed Apache, MySQL, PHP, phpMyAdmin manually on a Windows machine, the whole process took hours! After learning that these applications can be installed by a single installer or package, I searched to the last page of the Internet for this time-saving program.
While building This blog website Server Environment, I get Connection reset, and Prematurely closed connection from PHP-FPM Daemon side. That cause Nginx 502 Bad Gateway issue.