Because of the change of computer, it is unavoidable to toss a development environment again.
Development environment is LNMP, after deployment of the site, visit the site is always "File not Found", so saw the ghost, has always been the environment, the configuration of the content is based on the previous configuration copy, the path confirmed no problem. So, really saw the ghost.
Generally have a problem to find the Niang, but most of the argument is to talk about configuration script_filename, how to change, here is the most puzzled place, because according to them, my configuration is right. So keep on tossing. The following points were drawn:
1 Software installation should be no problem, nginx and FPM communication should be normal, otherwise not say "File not Found";
2 configuration is no problem, one is the previous configuration is such, two are based on the internet said that most of them;
3 confirmed the configuration of the site path is not a problem.
So, clearly in front of, all normal, but not access, should be the issue of authority. View the following directory permissions, "drwx------", sure enough, obviously ghosts.
Think carefully, the original directory is my direct copy of the graphic interface, copy when the system directly modified the permissions, to the account of the following files can not be normal access. To confirm the problem, copy a few files in the same way, indeed. After directly modifying the permissions of the directory, the site can be accessed normally.
Summary: FastCGI sent in stderr: "Primary script Unknown" The problem is generally unable to find the corresponding file, in addition to the path, should also consider the permissions.