dan3460's avatar

Failed to Install PHP 8.4 on Ubuntu.

After several hours of trying to install php 8.4 on a new cloud instance of Ubuntu (Digital Ocean Droplet basic) i wasn't able to do so. I'm sure i cannot be the only one with this problem but could not find any article on Goggle. Trying to update apt with ppa:ondrej/php i come to a message: https://ppa.launchpadcontent.net/ondrej/php/ubuntu questing release' does not have a release file then shows a 484 not found and a IP address. Some of the advise on-line suggested to change the questing release for a different one (sorry i'm at work and don't remember) but that did not work either. As anyone here experience this?

0 likes
7 replies
dan3460's avatar

sudo add-apt-repository ppa:ondrej/php -y

JussiMannisto's avatar

Which version of Ubuntu are you running? Run this:

lsb_release -a
dan3460's avatar

I killed the droplet, but i believe was 24.10.

JussiMannisto's avatar
Level 50

Version 24.10 is no longer supported, and Ondřej's repository doesn't have packages for it.

I recommend always using LTS (Long-Term Support) versions of distributions. In this case it would be Ubuntu 24.04.

1 like
dan3460's avatar

Didn't know that. I assumed that a newer version would be supported. I'll try tonight with 24.04.

Thanks for the advise.

kupce's avatar

I have no understanding how PHP works. Neither Ubuntu.

Yet Laravel Boost helped me to updated from php 8.1 to 8.2.

You can start with a prompt like this:

Help me migrate from php 8.1 to php 8.4

I fed the Laravel Boost via Custom Guideline what are my server stack and the version of Ubuntu etc.

With the Laravel Boost + Custom Guideline I find it much better than ChatGPT I do not have to repeat my self the next day or month later.

The AI proceeded to advice me what I need to do before switching to php 8.2.

e.g. update this packages, do this otherwise it will break your app before switching. Many of that was done by Laravel Boost, I just clicked Yes, Yes, Yes. Crazy times.

Now we move to Server side.

AI gave me server codes. I run them. Got some server errors, fed them to Laravel Boost / AI ( inside VS code) . AI revised what are the next step to do.

We end up with installing php 8.2 for Laravel site and left 8.1 for Wordpress site on the same Server. All was only possible due AI . Again I have no clue how to do any of this without AI.

Please or to participate in this conversation.