Welcome! Log In Create A New Profile

Advanced

Re: Check for existence of PHP socket availability with `nginx -t`

March 15, 2021 02:23AM
Hello Maxim.

> nginx does not care if the upstream socket is reacheable or not
> when it parses configuration, it is only important when processing
> a particular request. That is, nginx can (and will) start just
> fine if the socket doesn't exist (or, similarly, upstream server's
> IP address isn't reachable). And that's what "nginx -t"
> checks for: if nginx itself will be able to start.
>
> […]
>
> If your use case is simple enough and you want both nginx and
> corresponding PHP-FPM processes to be running at the same time,
> and, for example, don't want to start nginx if PHP-FPM isn't
> running - this is something to check by means external to nginx.

Perfect answer - thank you very much for your clarification.

With gratitude and best wishes,

Pete
Subject Author Posted

Check for existence of PHP socket availability with `nginx -t`

petecooper March 14, 2021 11:33AM

Re: Check for existence of PHP socket availability with `nginx -t`

Maxim Dounin March 15, 2021 01:04AM

Re: Check for existence of PHP socket availability with `nginx -t`

petecooper March 15, 2021 02:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready