DEV Community

Cover image for Nginx front / Nginx Unit-PHP Back
markrunryder
markrunryder

Posted on

1

Nginx front / Nginx Unit-PHP Back

Moving from PHP-FPM to PHP-SAPI? This refactoring looks promising. I am coming to the conclusion that "Nginx Unit" will not and should not supplant classic Nginx. Just look at all the Unit doc listener examples. Beside a speed increase, replacing FPM with SAPI allows for instant environment updates without restarting anything. Just a curl PUT.

Nginx Unit 1.29.0, released on December 15, 2022
Listeners: On Linux-based systems, abstract UNIX sockets can be used as well...

unix:/filesocketheadache (problems)
verses
unix:@abstractsocketmagic (problem solved)

Abstract UNIX (virtual) sockets only work with Linux. They are virtual and unlike classic socket files, their existence goes away when apps stop or systems reboot.

(DEV) Using Nginx as a proxy to multiple Unix sockets...
https://dev.to/vearutop/using-nginx-as-a-proxy-to-multiple-unix-sockets-3c7a

Google search...
"nginx unit" abstract unix socket

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay