Hacker News new | ask | show | jobs
by mission_failed 1046 days ago
Compared to say 10 years ago, now days devel environments are made up of stacks of modules that you have to hand configure. 10 years ago a LAMP server involved hopping on a Ubuntu server, paste in an apt command from a website and off you go.

After not doing any devel in years I was trying last week to do the modern equivalent (nginx + php) and literally none of the guides online ended up with a webserver that processed php, which I eventually figured out was every single tutorial I tried was giving the wrong code at the step where you have to manually edit the nginx configuration file, because you have to declare the php version there and Ubuntu apt installs a more recent version, so nginx can't find it. Previously the linking between webserver and php 'just worked', now it's all manual and there are no breadcrumbs for non-experts when things break

So a reasonably simple server has a qualified engineer confused for few hours, what hope does anyone have for something more complex?

1 comments

It’s probably been about 10 years since I’ve had to run any php, would you not just clone the repo and run whatever the modern equivalent of php-fpm+Nginx is in a container passing in the code as a volume?

Or if you’re not using containers at all run the language’s app server? (E.g. an equivalent of <node serve index.js> / <go run app.go> / <python server.py> / <rails serve> etc…)