Article 6CN7A OpenBSD 7.3 Apache 2/PHP simple-/classic-style?

OpenBSD 7.3 Apache 2/PHP simple-/classic-style?

by
dchmelik
from LinuxQuestions.org on (#6CN7A)
I'm trying to setup Apache 2.4.56, PHP 8.2.7 on OpenBSD 7.3 but the Apache Foundation has made it harder & harder to run PHP. They suggest don't do it the simple/classic way because supposedly the extremely complicated new way is better, which when it started and they (on IRC) said do it, only ever linked me to a short marketing-style blurb explaining why it's better but not how to setup. When I finally found scant (but supposedly complete) setup instructions, even though I at least triple-checked I'd done everything right, PHP just didn't work at all, so I went back to the old way, which worked well until recently (on older OpenBSD in recent years) but now may not. The new way complicates things by them wanting you to run more configuration/modules including a proxy on some port merely to run PHP. I think the differences were mpm_prefork (old) versus mpm_event or mpm_worker (new).
Can anyone explain how to still setup PHP the old/functioning way or has anyone ever figured out the new/over-complicated way and actually got it to work and could explain that better than the Apache Foundation did when this method started? I've installed php-apache 8.2.7 and uncommented/added lines in /etc/apache2/httpd2.conf I used to. If anyone can explain setup in a chroot (in which I won't need any modules other than PHP itself) that'd also be interesting.
I don't even want to ask Apache Foundation themselves because there's a specific chatter that only linked the marketing-style blurb then blames people when they can't setup the new style from that, when that doesn't even document it, and follows them to other channels saying like they're bad for using the simple/classic way even though that worked fine at the time.
If it's easier with Nginx, I'm open to that; I've found that newer network software sometimes has friendlier communities, such as Postfix (helpful) versus Sendmail (sometimes 'blame the user' before you even setup)... maybe similar with Nginx versus Apache? Just in future I may want to install MediaWiki and I'm not aware they have any complete instructions for rewriting URLs under Nginx rather than Apache...
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments