News for hackers. Stuff that matters.
Re:FrankenPHP: Modern PHP App Server by lordofgibbons on Thursday May 30, 2024 @12:32AM (#40520085)
>It takes 5 minutes to configure

Is that because you have 18 years of experience, or would it be as easy for a new developer?

Re:FrankenPHP: Modern PHP App Server by chrisandchris on Thursday May 30, 2024 @12:50AM (#40520179)
I was a long-time PHP dev and then moved on to C#. I was close to writing this nginx/fpm setup lookss very complex compared to "dotnet run". But then I remembered, in ASP.NET you have a Program with 50 lines of code that must have an exact order, otherwise thinks work except they don't.

So I would say, knowing these two languages, PHP really is that easy to setup.

Re:FrankenPHP: Modern PHP App Server by neonsunset on Thursday May 30, 2024 @07:11AM (#40522361)
This has not been true for a long time.
Re:FrankenPHP: Modern PHP App Server by hluska on Thursday May 30, 2024 @11:58AM (#40525201)
You won’t find this answer very satisfying, so feel free to ask questions.

But it depends on what you’re trying to accomplish. If you’re sticking with defaults, it’s very easy - it’s less than ten minutes of work or seconds if you’re comfortable working with Docker.

On the other hand, let’s say that you’re running into problems scaling to handle more requests. You’ll end up having to tweak the max_workers setting. That takes a bit of experience or it can be a lot of ‘fun’ (in the Dwarf Fortress sense).

So yes and no. But a lot of people have been through this, have all the trauma you would receive and tend to be quite helpful.

You can do it!

Re:FrankenPHP: Modern PHP App Server by hparadiz on Thursday May 30, 2024 @12:35AM (#40520102)
I just have the right config for both Apache2 and nginx from hundreds of sites. The config itself is only 50 lines. You can find a good one and stick with it.
Re:FrankenPHP: Modern PHP App Server by troupo on Thursday May 30, 2024 @02:27AM (#40520717)
Yup. The process of finding alone will take more than 5 minutes. And is likely to not work for your particular circumstance.
Re:FrankenPHP: Modern PHP App Server by njovin on Thursday May 30, 2024 @12:58AM (#40520218)
You can have a a ~20 line docker-compose.yml file that only requires you to `docker compose up` and you're up and running. It's gotten insanely easy to run php-fpm + nginx + [whateverdb] in a set of docker services that require virtually no configuration.
Re:FrankenPHP: Modern PHP App Server by troupo on Thursday May 30, 2024 @02:28AM (#40520721)
And who is going to write that ~20 line compose file with "no configuration"? A newbie?
Re:FrankenPHP: Modern PHP App Server by wruza on Thursday May 30, 2024 @04:01AM (#40521266)
An LLM of course. They are really good at “trivial but you have to find a good tutorial” types of work.
Re:FrankenPHP: Modern PHP App Server by cess11 on Thursday May 30, 2024 @03:33AM (#40521111)
When you're configuring Internet facing Linux services you're kind of out of the newbie area.

A newbie is more likely to use the built-in development server and then SFTP a 'git archive' to a shared host.

Re:FrankenPHP: Modern PHP App Server by troupo on Friday May 31, 2024 @01:45AM (#40531876)
The original comment was about newbies. Everyone is a newbie at one point.

Just last year I tried a blog engine written in PHP. 24 years programming experience, but I haven't touched PHP for 10 years, and I haven't touched configuring it for 15+ years.

It took me half a day to make it work.

Re:FrankenPHP: Modern PHP App Server by cess11 on Friday May 31, 2024 @03:56AM (#40532491)
What blog engine? Usually with PHP applications you clone the repo, copy .env boilerplate, enter database credentials, run Composer to fetch dependencies and do some setup tasks, then boot the application.
Re:FrankenPHP: Modern PHP App Server by troupo on Friday May 31, 2024 @05:30AM (#40532982)
I really wish people would maintain conversation context for at more than a single reply.
Re:FrankenPHP: Modern PHP App Server by donatj on Thursday May 30, 2024 @12:45AM (#40520157)
I think it would be roughly that easy for anyone with basic nginx experience. Nginx includes a php fast-cgi snippet that you just `include` from your server block.

It really is very easy.