mpemburn
Posts: 4
Joined: Thu Jan 05, 2023 4:58 pm

Need help getting PHP 8.1 to install

Thu Jan 05, 2023 6:58 pm

Howdy!

I've got a Pi Zero W V1.1 running Bullseye, and I've been pulling my hair out trying to get PHP 8.1 installed. I was able to get 8.0.1 going, but I have a Laravel 9.x project that requires 8.1.

The sticking point is:

Code: Select all

sudo apt install php8.1
E: Unable to locate package php8.1
E: Couldn't find any package by glob 'php8.1'
This was preceded by:

Code: Select all

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
Am I missing something?

Thanks!

Mark


mpemburn
Posts: 4
Joined: Thu Jan 05, 2023 4:58 pm

Re: Need help getting PHP 8.1 to install

Fri Jan 06, 2023 1:21 pm

Thanks for the link--I didn't find that one when googling.

I just tried it out and, after doing:

Code: Select all

sudo apt update

...and seeing that there were packages to upgrade, I did:

Code: Select all

sudo apt upgrade
.
It ended with "Illegal instruction", and then everything it tried returned "Illegal instruction". When I rebooted, it stopped with a kernel panic. {sigh}. I'll re-image it at try again.

Mark

NickJP
Posts: 11
Joined: Fri Jul 17, 2020 7:34 am

Re: Need help getting PHP 8.1 to install

Mon Jan 23, 2023 9:56 am

I have php 8.2.1 running on Bullseye using the repository at sury.org. See https://packages.sury.org/php/README.txt.

Return to “Other programming languages”