r/nginx • • Sep 22 '26

GitHub - Qbix/webserver: Pure-PHP Web Server. No NGinX or PHP-FPM needed. Handle over 100x more traffic instead!

https://github.com/Qbix/webserver
7 Upvotes

4 comments sorted by

View all comments

Show parent comment

0

u/EGreg Sep 22 '26

Right, its default mode is like Octane but without having to rewrite your code to use async I/O, and also with automatic reset (thanks to PHP reflection) between requests.

If that doesn't work (e.g. your functions have local static variables) you can enable the "forkPerRequest" mode in config, which can still handle 100x the amount of workers NGINX + PHP-FPM does. It actually spawns a new forked process per request (~7ms) but it saves 50ms or so on the framework bootstrap + config.

1

u/MysteriousCoconut31 Sep 22 '26

That's cool. I'll give it a shot because I'm not a fan of PHP's common FPM + NGINX setup. It's proven, but annoying. I'm for anything that eases the pain AND makes things faster.

I read the compatibility section and that covers what I was looking for, but I'd still rather have that more front and enter. It was my second thought after seeing the pitch.