Change from PHP 7.4 to 8.2 (I guess)

I’m a beginner and I just finished “TODAY” my website. However, I learned that php 8.0 is dead now as I’m using 7.4. I know leaking security all the around. So I’m wondering (taking baby steps), how can I upgrade from my current PHP 7.4 to PHP 8.2? I’m using Debian 11 and I am using LAMPS. Remember I’m new.
Suggestions?
Dan

Have you tried asking ChatGPT for directions? It gives some pretty straight forward instructions that are easy to follow. Just use the prompt “How do you upgrade from PHP 7 to 8 on debian 11?”

Mainly it will instruct you to enter a few commands to add a repository and then issue a command like…

sudo apt install -y php8.0

Then configure Apache to also recognize it.

Just make sure that all the code you wrote will be compatible with PHP 8. :slight_smile:

1 Like

8.0 is “dead”, only in the sense that 8.3 exists and should be used instead :stuck_out_tongue:

(Fun fact: 8.3 was released 4 days ago.)

Well if you’re trying to install 8.2, you wouldnt tell it to install 8.0 :wink: but yeah, the theory’s correct.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.