How to update PHP to 7.3 for Wordpress One-Click App and Debian 9

Linode Staff

I have a wordpress site that I am trying to add Jetpack to.

When I click to add Jetpack it does not work.

I suspect it is because I am not on php 7.3

I tried to change to php 7.3 using these instructions.

https://tecadmin.net/install-php-debian-9-stretch/

It did not work.

I could not find help on the forum or support on file.

What am I doing wrong?

1 Reply

Hey there,

Sorry to see you're running into problems updating PHP on your Wordpress site. I recently updated my PHP for my Wordpress site on Debian 9. I added the commands I ran for quick reference. You should be able to copy-paste them into your terminal. All of the commands assume you logged in as the root user.

 apt update && apt upgrade -y

 sudo apt install ca-certificates apt-transport-https

 wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -

 echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list

 apt update

 apt install php7.3

 apt install php7.3-cli php7.3-common php7.3-curl php7.3-mbstring php7.3-mysql php7.3-xml

 apache2ctl restart

Then you can run the following command to check your PHP version.

 php --version

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct