All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
I want PHP8. Easiest Method? Arch Linux? FreeBSD?

Been on a PHP coding binge with Laravel lately. I've been using PHP 7.4 with nginx and php-fpm. There are a couple features in PHP 8 that I'd like to have, but Debian bullseye doesn't have PHP8.
All of the "how to install PHP8 on Debian" articles I've found involve adding the sury.org repo. I'vee never used it and in the past have had issues with dodgy repos, though sury.org seems to have a good rep. So that's option 1.
Option 2 would be to switch to a diffrent distro. Researching RHEL-based distros points me at the remy repo for PHP8 so I'm back to the sury.org third-party situation - if I'm going to do that, I'll stick with Debian.
Arch Linux seems to have PHP 8 as a regular pacman package alongside others. I've never used Arch, but after SunOS, Solaris, ConvexOS, AIX, HP-UX, Slackware, Gentoo, CentOS, RedHat, Ubuntu, Debian, FreeBSD, OpenBSD, NetBSD, and a few others, I think I could muddle through.
Speaking of *BSD, it appears that PHP 8 is an option there as well. I'm a long-time OpenBSD user but have only played with FreeBSD. Using FreeBSD would make @jsg happy. Using PHP would make him sad, though.
Comments
Please try the following on Arch Linux:
Just compile it yourself. If don’t know how, refer to the PKGBUILD of the Arch package. It should be easy to read and follow as long as you are familiar with *nix.
RHEL 9 has php 8.0 in its repo, and 8.1 as a module.
Not sure about RHEL 8.
Note that, if I'm not mistaken, the Rémi from Rémi's repo is an official php packager, and his repo is not some obscure shit that's going to disappear overnight
Compiling it yourself is the way to go like it was mentioned above. Very easy and just works. php.net/downloads
Debian has Surý repo. Always go Debian and have no doubt - there is repo for everything.
Ubuntu 22.04 has Php 8.1
Ubuntu has PPA that is easily searchable.
Debian repos are individually hosted and they are harder to find.
Ondřej Surý is the maintainer of PHP packages on Debian core repositories as well. I am using it on production (8.2) It is safe. He also maintains a repo for Ubuntu (only LTS releases though). https://launchpad.net/~ondrej/+archive/ubuntu/php
For rpm based distro's like Fedora, CentOS there is Remi - https://blog.remirepo.net/
You can use docker and laravel sail.
https://lando.dev/ - docker based developer environments.
You can also use nix package manager and nix packages on almost any linux distro.
https://devenv.sh/ - nix based developer environments
Alpine have PHP 8 on official repository without any configuration just straight
apk add php8
If you looking for PHP 8.2 there on edge community repository just simply remove comment on
/etc/apk/repository
Another option would be to run PHP 8 PHP-FPM as a Docker container, expose the FPM port bound to localhost, then use it on your nginx setup (
fastcgi_pass 127.0.0.1:9000
).OS-independent and you can run multiple instances depending on what versions you want available.
I forgot RHEL 9 came out
I only use it at work, and we're one of those "we'll only upgrade when support expires" kind of places so we haven't got there yet.
I ran across this and am wondering how accurate it is.
https://www.reddit.com/r/linux/comments/htojwk/why_is_the_mindset_around_arch_so_negative/
There are some communities which are legendarily hostile to new users. OpenBSD is perhaps the most famous, where nearly every how-to question is answered by "read the man pages" or "read the source". FreeBSD for years had a ridiculous page of grammar requirements you had to check otherwise your post would be nuked. Gentoo Linux also wasn't the friendlist place as I recall. Curious if Arch is the same.
If people stop spamming "I use arch btw" everywhere, maybe we can show some mercy to them.
The main Arch forum is legendary for being anti newbie friendly. RTFM is usually the answer unless your wording is extremely careful.
EndeavourOS on the other hand is very friendly.
Not a fan of Arch if your goal is to spend time on PHP rather than on the OS. It's a fine OS to learn or if your focus is on making the best OS for your specific use, but otherwise I think the rolling release is more of a pain in the ass.
With Debian, RHEL, Ubuntu and the likes, you'll still get recent PHP and it will not take a lot of time to maintain the OS. Communities are friendly enough. Plus many tutorials on the Internet, if you don't forget to burn anything or anyone who start by telling you to disable SELinux (on RHEL).
My opinion anyway!
But that's 90% of the tutorials...
Sorry this world sucks, but that's the only one we have ;-)
Fortunately the same people will be the one recommanding you build from source instead of making the effort to tell you how to build your own package if the version of the software is not in the repo. So you're dodging two bullets with the same stone, or something like that...
Could change the release to bookworm; it has PHP8 and is a couple weeks from hard freeze. Will be released as Debian 12 later this year.
Ondřej Surý(the repo maintainer, BIND9 developer and Debian maintainer) has blocked ip addresses of people he does not agree with politically - https://archive.is/ylh6j (archive because Ondřej really wanted to censor what happened and deleted all the comments himself). What he did goes against Debian ethics, GPL and a whole bunch of other shit he signed personally.
TLDR; Stay the fuck away, this person is unstable mentally and I would not count on his package quality(or possible included backdoors). He went sicko mode because people wanted IPv6 support(and even got paid to make it happen - instead he sent the money to convicted fraudsters and ignored all the people wanting ipv6).
That's the safest bet.
Eventually you can go with Centos/Alma/Rocky/etc and https://rpms.remirepo.net/ (its also filled with political agenda, but what isn't nowadays)
Are you stupid or can't read? The cunt Josh made an unsolicited donation and then requested IPV6 support, ignoring the fact it's a bunny CDN location problem (not his problem) and Sury provided a workaround. Why provide the thread and then twist it to fit your psycho agenda? It just makes you look even more pathetic. You're clearly the mentally unstable one.
Holy shit, you are some kind of asshole all to yourself. Keep your petty shit and Kiwi Farms bullshit off LET.
Bunny CDN / @BunnySpeed still can’t guarantee IPv6 on all PoPs? They should at least make it an option (even if it reduces the PoPs somewhat) for those who require IPv6 to actually work, rather than partial coverage which will break things randomly.
remi repo...
I don't know docker, do you like to use it, it can meet your needs, and it is simple.
Angry?
Sury still broke GPL, Debian ethics and a whole bunch of other shit.
If you want to defend him because he did something to a person you don't agree politically - you are a insane.