About fastcgi sent in stderr: "Primary script Unknown" while reading the header from response once resolved

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.