Php file request display 502 or 404

Found 404 displays distal php file can not be found when requested php file.
Was discovered later after server restart php-fpm is not turned on, the reason is because you want to open:
Nginx default does not support PHP file, you need to open the php-fpm (if there are php-fpm, 1 may not open, 2 see. directory misplaced when the online tutorial);

After seven centos needs

systemctl start php-fpm //这次启动,下次服务器重启不会自动启动
或者
systemctl enable php-fpm //开机自启动
Published 48 original articles · won praise 56 · views 20000 +

Guess you like

Origin blog.csdn.net/zhetmdoubeizhanyong/article/details/93473406