Post AzwxW1a6teXhZO3xmi by NuclearOatmeal@beige.party
(DIR) More posts by NuclearOatmeal@beige.party
(DIR) Post #AzwvuOyfMWv5An2qye by foone@digipres.club
2025-11-05T22:42:34Z
2 likes, 1 repeats
the year is 2005. PHP is the easiest language to deploy on my apache server, since I just need to drop some files in, and not have to set up any new services.the year is 2025. PHP is somehow the easiest language to deploy on my apache server, since I just need to drop some files in, and not have to set up any new services.
(DIR) Post #AzwwFYX32AOYt4DK52 by kelpana@mastodon.ie
2025-11-05T22:46:21Z
0 likes, 0 repeats
@foone Personally, I like my docker-compose.yml and php-fpm on NGINX. Just as easy to deploy though.
(DIR) Post #Azwwr5uDuib16nxBlw by gsuberland@chaos.social
2025-11-05T22:53:10Z
0 likes, 0 repeats
@foone i expected that python would be just as easy but it turns out that no, it is absolutely not.
(DIR) Post #AzwxOewIgHkdJrvjQO by millie@infosec.exchange
2025-11-05T22:57:52Z
0 likes, 0 repeats
@kelpana @foone containers are a sin and puts you in bad favour with the Church
(DIR) Post #AzwxOg8OEp131eatuK by foone@digipres.club
2025-11-05T22:59:11Z
0 likes, 0 repeats
@millie @kelpana and I'm a pope, so I gotta be real careful with that shit
(DIR) Post #AzwxRvqeGqqid7qaIa by foone@digipres.club
2025-11-05T22:59:41Z
0 likes, 0 repeats
@gsuberland it used to be easy to deploy python as a CGI script but at some point they decided to Make It Fast which also made it way more complicated
(DIR) Post #AzwxW1a6teXhZO3xmi by NuclearOatmeal@beige.party
2025-11-05T22:59:50Z
0 likes, 0 repeats
@foone I know, right?I decided to go from a static page to a static page with a little bit of ajax in the back to yoink data from the DB to show the visitor. Turn on MySQL, make sure there's no obvious weaknesses in the setup and define a schema. That took longer than writing the service in PHP and just dropping it in the doc root directory.About the only other language that is that easy to setup and go, to me, is Perl. That being said, I would never support mod_perl unless you tripled my paycheck. And 'venv'? Who came to with that? I mean, yeah, it keeps your chocolate out of my peanut butter, but still. I might as well 'dotnet new whatever's. At least with that I get compilation and static type checking. And don't get me started on ...Oh. Y'all aren't listening now. Ok. So, yeah. PHP is simple and handy. The end.
(DIR) Post #AzwxZZSFPgyPUi4n4a by NuclearOatmeal@beige.party
2025-11-05T23:00:57Z
0 likes, 0 repeats
@foone @millie @kelpana I'm a pope too, I grant you a dispensation.
(DIR) Post #AzwyU9kzd4MOIhpIK8 by gsuberland@chaos.social
2025-11-05T23:11:23Z
0 likes, 0 repeats
@foone not only that, but it also fractured the solutions a bunch so now there's not really a "standard" solution to host a python app under a regular web server, and there's little in the way of official guidance. last I checked the docs were like "you can deploy with any of these six options" but provided zero info as to how to actually do that.
(DIR) Post #AzwyXa1IRNMscf5JAW by azonenberg@ioc.exchange
2025-11-05T23:12:02Z
0 likes, 0 repeats
@foone @gsuberland So this doesn't work anymore?$ cat cgi-bin/foo.cgi#!/usr/bin/python3code here
(DIR) Post #AzwywK9qYJgQfOsnT6 by gkrnours@mastodon.gamedev.place
2025-11-05T23:16:30Z
0 likes, 0 repeats
@foone I assisted to a lecture by the PHP guy and like all the design decision around the language can be boiled down to "how do I make it easy for newcomer". I'm glad it seems to still be true.
(DIR) Post #AzwzmieeicEThWHGQS by f4grx@chaos.social
2025-11-05T23:25:57Z
0 likes, 0 repeats
@foone maybe except php-fpm
(DIR) Post #Azx0GpNWHirdF1cRQ8 by Pyxaron@dragonchat.org
2025-11-05T23:31:21Z
0 likes, 0 repeats
@foone If it was harder, maybe i would stop (ab)using PHP for nearly everything, even if it has nothing to do with webpages.
(DIR) Post #Azx8OTSqRb4BE4Gbya by tim_lavoie@cosocial.ca
2025-11-06T01:02:22Z
0 likes, 0 repeats
@foone Just have to be careful to ensure that nobody else is also able to just drop some files in to set up _their_ new service.
(DIR) Post #AzxBv70BHMsMyl78LI by hakfoo@mstdn.party
2025-11-06T01:42:00Z
0 likes, 0 repeats
@foone PHP isn't batteries-included. It's "the whole damn Batteries Plus Store Included."This is super-welcoming. There's no "you have to run a bunch of black-box scripts to generate a mountain of boilerplate before you get to hello world." There's much less "everything you want to do requires comparison-shopping third-party modules with dependency chains longer than a pedigree dog's family tree."
(DIR) Post #AzxPgYyIPBwOjvBmi0 by d1@autistics.life
2025-11-06T04:16:09Z
0 likes, 0 repeats
@foone agree. Basic administrative sanity has its unshakable place. I prefer nginx to apache, but have deployed apache plenty of times in the past, and it's very decent as well.
(DIR) Post #AzxejuTIQLITbNk8Tw by lunarloony@dosgame.club
2025-11-06T07:04:49Z
0 likes, 0 repeats
@foone @gsuberland That must be what FastCGI is for
(DIR) Post #B05VK5dzH7Us9Pc7fs by tykayn@mastodon.cipherbliss.com
2025-11-07T07:44:09Z
0 likes, 0 repeats
@fooneTo deploy https pages, caddy makes it nice and more reliable. But yeah, i would appreciate that things are az easy as that for other things to be deployed