Eternyt
Posts: 40
Joined: Tue Dec 19, 2017 4:23 pm

Upgrade from PHP 7.0 to 7.3 on Stretch

Fri Jul 03, 2020 2:03 pm

Hi all,
probably a stupid question. Is it possible to upgrade from PHP 7.0 to 7.3, while staying on Stretch? If yes, how I do it?

Thanks!

pidd
Posts: 724
Joined: Fri May 29, 2020 8:29 pm
Location: Birkenhead, Wirral, UK
Contact: Website

Re: Upgrade from PHP 7.0 to 7.3 on Stretch

Fri Jul 03, 2020 2:19 pm

Have you tried installing "php7.3"?

Code: Select all

sudo apt-get install php7.3

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Upgrade from PHP 7.0 to 7.3 on Stretch

Fri Jul 03, 2020 2:59 pm

pidd wrote:
Fri Jul 03, 2020 2:19 pm
Have you tried installing "php7.3"?

Code: Select all

sudo apt-get install php7.3

You misread the OPs requirement, PHP 7.0 is the default in Raspbian Stretch, whilst PHP 7.3 is default in RaspiOS (formerly Raspbian) Buster.
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Upgrade from PHP 7.0 to 7.3 on Stretch

Fri Jul 03, 2020 3:05 pm

Eternyt wrote:
Fri Jul 03, 2020 2:03 pm
Hi all,
probably a stupid question. Is it possible to upgrade from PHP 7.0 to 7.3, while staying on Stretch? If yes, how I do it?

Thanks!

You will have to build from Source Code, though it may cause dependencies issues:

https://github.com/php/php-src
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

pidd
Posts: 724
Joined: Fri May 29, 2020 8:29 pm
Location: Birkenhead, Wirral, UK
Contact: Website

Re: Upgrade from PHP 7.0 to 7.3 on Stretch

Fri Jul 03, 2020 3:15 pm

fruitoftheloom wrote:
Fri Jul 03, 2020 2:59 pm
pidd wrote:
Fri Jul 03, 2020 2:19 pm
Have you tried installing "php7.3"?

Code: Select all

sudo apt-get install php7.3

You misread the OPs requirement, PHP 7.0 is the default in Raspbian Stretch, whilst PHP 7.3 is default in RaspiOS (formerly Raspbian) Buster.
I admit I didn't read any of that information in the OP's question.

I made a suggestion, just in case the 7.3 package is available even if it isn't the default that would be picked up by an update - I thought I had done similar on Buster at one point.

Are you saying there is 100% no chance that it could happen?

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Upgrade from PHP 7.0 to 7.3 on Stretch

Fri Jul 03, 2020 3:18 pm

pidd wrote:
Fri Jul 03, 2020 3:15 pm
fruitoftheloom wrote:
Fri Jul 03, 2020 2:59 pm
pidd wrote:
Fri Jul 03, 2020 2:19 pm
Have you tried installing "php7.3"?

Code: Select all

sudo apt-get install php7.3

You misread the OPs requirement, PHP 7.0 is the default in Raspbian Stretch, whilst PHP 7.3 is default in RaspiOS (formerly Raspbian) Buster.
I admit I didn't read any of that information in the OP's question.

I made a suggestion, just in case the 7.3 package is available even if it isn't the default that would be picked up by an update - I thought I had done similar on Buster at one point.

Are you saying there is 100% no chance that it could happen?

The OP is running Raspbian Stretch not Buster :?
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Upgrade from PHP 7.0 to 7.3 on Stretch

Fri Jul 03, 2020 3:22 pm

Eternyt wrote:
Fri Jul 03, 2020 2:03 pm
... while staying on Stretch? ...
What possible reason do you have for that? What's blocking your upgrade to the better supported OS?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

pidd
Posts: 724
Joined: Fri May 29, 2020 8:29 pm
Location: Birkenhead, Wirral, UK
Contact: Website

Re: Upgrade from PHP 7.0 to 7.3 on Stretch

Fri Jul 03, 2020 3:28 pm

fruitoftheloom wrote:
Fri Jul 03, 2020 3:18 pm
The OP is running Raspbian Stretch not Buster :?
I fail to see the significance? Please enlighten me.

Eternyt
Posts: 40
Joined: Tue Dec 19, 2017 4:23 pm

Re: Upgrade from PHP 7.0 to 7.3 on Stretch

Fri Jul 03, 2020 3:33 pm

Thanks for all the answers, so if I get it correctly there are no easy ways to update to PHP 7.3 (or any major version after 7.0).
DougieLawson wrote:
Eternyt wrote:
Fri Jul 03, 2020 2:03 pm
... while staying on Stretch? ...
What possible reason do you have for that? What's blocking your upgrade to the better supported OS?
The reason I do not want to upgrade to Buster is that I have to start from a fresh install so I have to rebuild all of what I have done from scratch. And since I'm using my raspberry as a web server for more than a year now, I don't remember all the things I installed and modified to get all working.

Return to “Beginners”