D
D
dlakazov2019-03-01 14:58:42
PHP
dlakazov, 2019-03-01 14:58:42

How to fix docker container application error?

2019/03/01 11:44:32 [error] 6#6: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.18.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "127.0.0.1"

I don’t understand what to do, there is little information in Google, and it doesn’t help, in 1 container there is 1 service, nginx, php-fpm. The error
described above is displayed, it is based on the article on habré on installing a container application with magento, unfortunately this error pops up in any case, no matter what I take as a basis. Installation and configuration takes place on the local machine

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dlakazov, 2019-03-02
@dlakazov

I found a solution, if anyone has problems, just follow the documentation https://help.ubuntu.ru/wiki/nginx-phpfpm. The webserver may throw such an error "no input file specified" . In this case, you need to make sure that the nginx and php-fpm directories are the same, root var/www in the nginx config, on the machine, nginx and php-fpm must match

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question