Nginx Unit changes how we host PHP (& Laravel)

Nginx Unit changes how we host PHP (& Laravel)

Chris Fidao

1 год назад

21,127 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@tofiqhamza9102
@tofiqhamza9102 - 11.09.2023 23:55

Very cool.

Ответить
@locusm
@locusm - 12.09.2023 05:02

From HN to video in under 24 hrs!
Having a play with this today so your timing is perfect.

Ответить
@gocanto
@gocanto - 12.09.2023 12:36

or, we use GO :)

Ответить
@irawan953
@irawan953 - 12.09.2023 16:25

Cool , Thanks

Ответить
@Loige
@Loige - 15.09.2023 13:10

This looks super convenient. I didn't came across it before, thanks a million for sharing it!

Ответить
@uxweb
@uxweb - 17.09.2023 16:00

Wow! This looks so promising for PHP. It appears to have more steps involved for installing. What do you think it would be more simple? To install unit from a PHP base docker image or to install PHP from a unit base image? Thank you!

Ответить
@tom96508
@tom96508 - 20.09.2023 22:48

I really appreciate this video, you are very good at explaining, I love that you go line by line. The only problem I have is with static files, for example a .txt file inside /public or the sitemap itself (.xml), do you have any idea how to handle this to make it work?

Ответить
@vaviloffx
@vaviloffx - 21.09.2023 19:17

Nice experiment! And thanks for listing the cons — the lack of Gzip compressions, inability to protect dot files and set cache headers for static files. We'll stick with good ol' nginx+PHP-FPM for now :D

Ответить
@packofblackdogs
@packofblackdogs - 21.09.2023 21:03

Unit is awesome, but I had slightly different approach: install containerized unit-php8.2 and then run laravel. Very neat result. Until I had to make some mysql queries and not sqlite3. But that's fixable too.

Ответить
@hristijant9578
@hristijant9578 - 22.09.2023 00:57

Great content! Would love to hear your opinion on Laravel Octane with different application servers as well.

Ответить
@gadelat2
@gadelat2 - 24.09.2023 19:11

According my tests unit-php can't handle concurrencty when script is doing sleep()

Ответить
@devbugado
@devbugado - 04.10.2023 22:49

Fancy to try frankenphp?

Ответить
@vchopanov
@vchopanov - 09.10.2023 15:15

how to get metrics?

Ответить
@fevangelou
@fevangelou - 02.11.2023 12:50

Might be interesting to benchmark Unit with a multi port config (attached to the same backend) & load balanced by some Nginx proxy config VS Unit with a processes config for a single port. All in all its definitely more flexible compared to FPM. And with some smart Nginx proxying, any non-PHP requests could be entirely offloaded to Nginx. That being said, if Unit's config also allowed defining the path to the unit-php binary, that would probably make a multi-PHP setup easier.

Ответить
@thecaribcoder
@thecaribcoder - 28.11.2023 11:50

Been battling with this for hours now. For some reason keep getting the following error when I try to push the config

```
{
"error": "Invalid configuration.",
"detail": "The module to run \"php\" is not found among the available application modules."
}
```
Any ideas?

Ответить
@DaviMartins99
@DaviMartins99 - 30.11.2023 17:24

Incredible content, Chris
Thank you!

Ответить
@labkitadev
@labkitadev - 31.12.2023 11:34

you can use serversideup image for php it use s6-overlay mechanism that different from old supervisord, it can host your laravel app in a single docker image

Ответить
@cooltech5441
@cooltech5441 - 07.05.2024 09:44

I already have nginx server on my ubuntu 22.04 running for several project, I want to try nginx unit for my newest project, if I install this nginx unit, would it break my nginx and all related website?

Ответить
@ryanvelbon
@ryanvelbon - 14.05.2024 19:48

Great content. Keep 'em coming please!

Ответить