nginx and FastCGI - "Primary script unknown"
See original GitHub issueHi,
I’ve just downloaded the framework from the master branch and after running docker-compose up -d
, I got the following error when requesting for http://localhost
:
nginx_1 | 2017/06/01 12:25:31 [error] 7#7: *11 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.18.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "localhost"
nginx returns a 404 status code response with the text “File not found” in the content.
Im using Linux. Any ideas?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Nginx 1 FastCGI sent in stderr: “Primary script unknown”
The error message “primary script unknown” is almost always related to a wrongly set SCRIPT_FILENAME in the nginx fastcgi_param directive (or incorrect ...
Read more >How to debug "FastCGI sent in stderr: Primary script unknown ...
To resolve "Primary script unknown" problem: if you see "GET /" without a correct php file name, then it's your nginx conf problem....
Read more >FastCGI sent in stderr: "Primary script unknown" while reading ...
The error message “primary script unknown” is almost always related to a wrongly set SCRIPT_FILENAME in the nginx fastcgi_param directive ...
Read more >[SOLVED] nginx + php-fpm - file not found, primary script ...
Hello, I just updated packages and now php-fpm seems not working at all. It gives the errors "File not found" in the browser,...
Read more >FastCGI sent in stderr: "Primary script unknown
I'm running a nodejs project with nginx ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Oh, okay. It’s actually a problem with the .zip archive not preserving the correct file permissions. I’d suggest you do a
git clone
instead (as you should). You could also use the tarball (.tar.gz).Solved. Cloning instead of downloading the zip solves. Thanks.