News for hackers. Stuff that matters.
Re:The demise of the mildly dynamic website (2022) by decasia on Wednesday June 19, 2024 @01:48PM (#40730628)
I think the spirit of this article is correct, although some of the digs at modern web tech and SPAs seem to be beside the point.

I used to have a "mildly dynamic website." It was a $5 digital ocean box. It ran nginx with php-fpm, mostly so it could have a Wordpress install in a subdirectory, and it had a unicorn setup for an experimental Rails app somewhere in there.

Given that environment, the "mildly dynamic website" experience that TFA talks about was absolutely true. If I wanted a simple script to accept form input, or some little tiny dynamic experimental website, I could trivially deploy it. I could write PHP (ugh) or whatever other backend service I felt like writing. I ported the Rails app to golang after a while. It was fun. It made for a low cost of entry for experimental, hackish things. It's a nice workshop if you have it.

The thing is — if you are running this setup on your own linux virtual machine — it requires endless system maintenance. Otherwise all the PHP stuff becomes vulnerable to random hacks. And the base OS needs endless security updates. And maybe you want backups, because you got lazy about maintaining your ansible scripts for system setup. And the price of the $5 virtual linux box tends to go up over the years. And the "personal website" model of the web has kind of declined (not that it's altogether dead, just marginalized by twitter/facebook).

So I got exhausted by having to maintain the environment (I already do enough system maintenance at work) and decided to switch to static HTML sites on S3. You can't hack it anymore. But so far — I can live with it.

Re:The demise of the mildly dynamic website (2022) by pixl97 on Wednesday June 19, 2024 @02:09PM (#40730861)
And then you forgot to add "I had to stick it behind cloudflare because someone decided to DDOS it and send me 500GB/s traffic for no apparent reason at all.

The early web was the wild west. The modern web has turned into small fry trying to hide in the shadows of megalodons so they don't get ate by a goliath.

Re:The demise of the mildly dynamic website (2022) by ozim on Thursday June 20, 2024 @06:54AM (#40737190)
You don't have to go as far as DDOS.

Blogpost mentions comment section, like it something you can "just do" - no one wants to do comment sections in 2024 on their own. Amount of crap one will get in case they start to have mildly popular post is insane.

Re:The demise of the mildly dynamic website (2022) by edflsafoiewq on Wednesday June 19, 2024 @02:14PM (#40730907)
Shared hosting is probably better, and AFAIK more common, for the mildly dynamic website. The host handles a lot of the admin tasks like OS updates that you have to handle yourself with a VPS.
Re:The demise of the mildly dynamic website (2022) by massysett on Wednesday June 19, 2024 @03:16PM (#40731490)
NearlyFreeSpeech.NET is good for this. Their main tier - "production" sites - are very inexpensive and the admins take care of OS and server-software updates. They have another tier - "non-production" sites - that are even cheaper and can be perfectly sufficient for a personal homepage. The admins maintain these servers as well but they might do beta testing on them.

The environment is fully hackable and has PHP, SSH, SFTP, MariaDB, dominant languages like Perl and Python, obscure languages like Haskell and Lisp, etc etc.

Re:The demise of the mildly dynamic website (2022) by mk12 on Wednesday June 19, 2024 @05:32PM (#40732607)
+1 for NearlyFreeSpeech! I’ve used them for years paying only 40-45 cents a month. I love that I can just ssh in and mess around. My site is mostly static but recently I wanted to add a private section for specific family and friends. So I implemented OAuth 2.0 login with 2 php files and an .htaccess rule.
Re:The demise of the mildly dynamic website (2022) by Something1234 on Wednesday June 19, 2024 @08:15PM (#40733677)
Love nearly free speech.

Although I wonder how often your family actually uses it.

Re:The demise of the mildly dynamic website (2022) by svieira on Wednesday June 19, 2024 @05:34PM (#40732620)
And even more obscure languages like Forth and Octave. The only thing to watch out for is that they run FreeBSD (instead of a more "normal" distribution) so if you're used to Linux-as-seen-on-Debian-or-Ubuntu there are a few things that are different (but so cozy).
Re:The demise of the mildly dynamic website (2022) by kbolino on Thursday June 20, 2024 @08:48AM (#40738141)
For what it's worth, FreeBSD is actually it's own thing and not Linux at all. It's descended from Berkeley Unix and has no code in common with Linux or GNU (though it can still run software that's cross-compatible).
Re:The demise of the mildly dynamic website (2022) by svieira on Thursday June 20, 2024 @09:09AM (#40738374)
Correct - but if you're normally interacting with Linux boxes on the command line you're probably not going to be too far from home since the _programs_ behave mostly-the-same.
Re:The demise of the mildly dynamic website (2022) by kbolino on Thursday June 20, 2024 @10:01AM (#40738897)
Yes, though I guess this means we're in the era where "Linux" is more widely understandable than "Unix".
Re:The demise of the mildly dynamic website (2022) by bachmeier on Wednesday June 19, 2024 @10:10PM (#40734236)
For some reason I've never heard of it before. Looks like a good value as long as you avoid storage. Even shows D as a supported language!
Re:The demise of the mildly dynamic website (2022) by mapmap on Thursday June 20, 2024 @04:16AM (#40736246)
Does it support dot net?
Re:The demise of the mildly dynamic website (2022) by adamomada on Wednesday June 19, 2024 @02:41PM (#40731185)
When I was checking out the grav flat-file CMS, they had a recommendation for PaaS (php as a service)

https://learn.getgrav.org/16/webservers-hosting

Re:The demise of the mildly dynamic website (2022) by endofreach on Thursday June 20, 2024 @12:07AM (#40734790)
As much as i love every P standing for PHP, "PaaS" usually means Platform as a Service
Re:The demise of the mildly dynamic website (2022) by wwweston on Wednesday June 19, 2024 @04:27PM (#40732077)
This. For people looking for hosting as a service that don’t need scale (and even for some people who think they do) shared hosting is often the best low-admin + low-cost solution. Buuut you can’t brag about your cloud setup.
Re:The demise of the mildly dynamic website (2022) by dreadnip on Wednesday June 19, 2024 @04:06PM (#40731896)
> it requires endless system maintenance. Otherwise all the PHP stuff becomes vulnerable to random hacks

How so? I've seen PHP websites & apps run for 10+ years in production without updates. Even longer with a simple "sudo apt update" every few months and a "composer update" every year or so. The maintenance rate is actually very very low.

Re:The demise of the mildly dynamic website (2022) by crazygringo on Wednesday June 19, 2024 @06:57PM (#40733286)
Years ago a Digital Ocean virtual server of mine stopped working because I had never upgraded Ubuntu to the newest major version. After a few years, the version of Ubuntu was no longer supported by the Digital Ocean hypervisor and couldn't mount or boot at all.

In my experience, yes you absolutely need maintenance. In the past I've had to upgrade from HTTP to HTTPS, upgrade the OS, upgrade to newer versions of external API and embedded components because the old ones were deprecated, handle a domain registrar shutting down, and then yes absolutely PHP updates and upgrades for security that then start giving you warnings because less secure versions of functions are being deprecated...

And frequently updating the one thing that's broken necessitates upgrading a bunch of other things that breaks other things.

I literally cannot imagine how you would keep a PHP site running on a virtual server for 10 years without any maintenance. I need to address an issue probably roughly once a year.

Re:The demise of the mildly dynamic website (2022) by Publius_Enigma on Wednesday June 19, 2024 @10:56PM (#40734436)
These are all problems that shouldn’t exist. You have succinctly described the problems with modern IT. Software doesn’t need to have an expiration date. It doesn’t decay or expire. But because of our endless need to change things, rather than just fix bugs, we end up with this precarious tower of cards.

If, as an industry, we focussed on correctness and reliability over features, a lot of these problems would disappear.

Re:The demise of the mildly dynamic website (2022) by quest88 on Wednesday June 19, 2024 @11:15PM (#40734513)
I agree there's some truth in what you say. I do think these upgrades are part of a path towards correctness and reliability (bug fixes, security vulnerabilities, etc).
Re:The demise of the mildly dynamic website (2022) by ArneBab on Thursday June 20, 2024 @01:41AM (#40735299)
Yes, these problems shouldn’t exist. But they do.

One of the big strength of the Web is the commitment of Mozilla „do not break the web“.

But this is hitting its limits, because the scope of Javascript is being expanded more and more (including stuff like filesystem APIs for almost arbitrary file access — as if we had not learned from Java WebStart that that’s a rabbit hole that never stops gifting vulnerabilities), so to keep new features safe despite their much higher security needs, old features are neutered.

I lost a decentralized comment system to similar changes.

Re:The demise of the mildly dynamic website (2022) by kbolino on Thursday June 20, 2024 @09:04AM (#40738319)
But the hardware does expire. Computers aren't just magically "faster" than they were decades ago; they're altogether different under the hood. An immense number of abstractions have held up the image of stability but the reality is that systems with hundreds of cores, deep and wide caches, massively parallel SSDs and NICs, etc. require specialized software compared to their much simpler predecessors to be used effectively. Feature bloat is a major annoyance, and running the old software on new hardware can give the appearance of being much faster, until it locks everything up, or takes forever to download a file, or can't share access to a resource, or thinks it has run out of RAM, or chews up a whole CPU core doing nothing, etc.
Re:The demise of the mildly dynamic website (2022) by imabotbeep2937 on Wednesday June 19, 2024 @08:40PM (#40733794)
"I have run production websites where I didn't patch security for months or years on end." Linux users wondering why nobody takes them seriously.
Re:The demise of the mildly dynamic website (2022) by citizen_friend on Wednesday June 19, 2024 @09:27PM (#40734005)
Security people on high alert for every possible scenario with no sense of relative risk or attack surface wonder why their concerns aren’t taken seriously.
Re:The demise of the mildly dynamic website (2022) by Publius_Enigma on Wednesday June 19, 2024 @10:53PM (#40734424)
This. Furthermore, this posture has percolated down to home computing environments (because it is all Windows or Linux) so even my home computer has to receive constant updates as if it’s controlling a Luna lander.
Re:The demise of the mildly dynamic website (2022) by remram on Wednesday June 19, 2024 @09:05PM (#40733898)
I have a box with nearly 5 years uptime, the one it replaced had at least that much, my experience matches GP's. unattended-upgrades gives you 99% of the patches, a manual upgrade every few months will get you the rest.

If you see a problem with this, why not point it out directly, instead of this snark?

Re:The demise of the mildly dynamic website (2022) by chubot on Wednesday June 19, 2024 @03:36PM (#40731683)
The thing is — if you are running this setup on your own linux virtual machine — it requires endless system maintenance.

Yeah, this is exactly what I talk about this post -- why do I used shared hosting?

Comments on Scripting, CGI, and FastCGI - https://www.oilshell.org/blog/2024/06/cgi.html

Re:The demise of the mildly dynamic website (2022) by fpoling on Wednesday June 19, 2024 @05:54PM (#40732805)
I am puzzled that your site required constant maintenance. I run a similar setup that I hardens using systemd service restrictions with nothing running as root. Then I subscribed to Debian and couple more mail lists with security announcements. It turned out I needed to spend like 20 minutes per month to maintain it.

I also find that PHP works much better than Go regarding maintenance efforts. With Debian I have automatic updates of all PHP dependencies that I need so security announcements is a nice single source of truth. But with Go I would need to setup monitoring of dependencies for updates myself and recompile/deploy the code as necessary.

Re:The demise of the mildly dynamic website (2022) by bitslayer on Wednesday June 19, 2024 @08:11PM (#40733649)
They didn't say constant maintenance, they said endless maintenance. 20 minutes a month is a never ending commitment of time. They have better things to think about.
Re:The demise of the mildly dynamic website (2022) by oopsallmagic on Wednesday June 19, 2024 @10:20PM (#40734283)
Yeah, like developing a résumé.
Re:The demise of the mildly dynamic website (2022) by notatoad on Wednesday June 19, 2024 @08:50PM (#40733826)
>and decided to switch to static HTML sites on S3

it's really hard to overstate how great s3 sites are with cloudfront in front of them. mine costs me <$1/month, i have essentially no concerns about security, ddos, maintenance, anything. if i want to update it, i push some different files to s3. the backups are the other copy of the data on my local machine that i pushed to it.

the added complexity for any level of dynamic-ness is really just not worth it, unless i'm going to go to the trouble of making a full-on app that needs a revenue model.

Re:The demise of the mildly dynamic website (2022) by jmathai on Thursday June 20, 2024 @12:29AM (#40734915)
Similarly, Github Pages are great. You get rudimentary dynamic support by using a static site generator if you need it.
Re:The demise of the mildly dynamic website (2022) by selcuka on Thursday June 20, 2024 @02:43AM (#40735663)
CloudFlare Pages are another great product for zero maintenance static sites, and they can be made mildly (or heavily, if you want) dynamic with CloudFlare Workers.
Re:The demise of the mildly dynamic website (2022) by mmarian on Thursday June 20, 2024 @06:21AM (#40736987)
Second Cloudflare. And it's super easy to hook up to domains registered via Cloudflare too.
Re:The demise of the mildly dynamic website (2022) by BenjiWiebe on Wednesday June 19, 2024 @10:04PM (#40734206)
Linode's base tier VPS is still $5/month.
Re:The demise of the mildly dynamic website (2022) by mtalhaashraf on Thursday June 20, 2024 @09:35AM (#40738618)
I tried S3 for my static HTML site but the problem is my personal website gets infrequent visitors and for each visit the first load is always slow probably because my website gets moved from memory to disk. The thing is, my website is less than 20KB and I don't like it to be slow for all the users just because it is infrequent. Managing my own server allows me to lock my website into memory.
Re:The demise of the mildly dynamic website (2022) by layer8 on Thursday June 20, 2024 @10:04AM (#40738926)
> The thing is — if you are running this setup on your own linux virtual machine — it requires endless system maintenance. Otherwise all the PHP stuff becomes vulnerable to random hacks. And the base OS needs endless security updates.

Just use Debian with unattended-upgrades. Done. Only rarely do you have to do anything manually.

Setting up daily backups with verification is also a one-time thing.

Re:The demise of the mildly dynamic website (2022) by jimmaswell on Thursday June 20, 2024 @01:09PM (#40740923)
A daily apt update/upgrade in crontab has been working fine for me. What is the maintenance beyond that?