You are not logged in.

#1 2019-01-20 11:09:13

MartynWheeler
Member
Registered: 2019-01-20
Posts: 5

[SOLVED] php7 on BunsenLabs 8.5 bunsen-hydrogen

Hi,
This maybe a very basic question.

I'm currently running version 8.5 on my old laptop.  I'd really like to be able to use php7, am I able to upgrade this easily without a complete reinstall?  Or do I need to totally upgrade the whole OS?

Thanks,

Martyn

Offline

#2 2019-01-20 11:20:09

twoion
ほやほや
Registered: 2015-08-10
Posts: 2,459

Re: [SOLVED] php7 on BunsenLabs 8.5 bunsen-hydrogen

You do not need to upgrade to Helium/Debian9, the PHP Debian maintainer offers a private repository with current PHP builds for Debian 8/BL Hydrogen 8.

Go here: https://packages.sury.org/php/README.txt and follow the instructions in this file to configure the repository. Then, using

sudo apt-install php7.2-fpm

etc you can install the PHP7 packages you need (just an example).


What can you see / On the horizon?

Offline

#3 2019-01-20 12:52:26

MartynWheeler
Member
Registered: 2019-01-20
Posts: 5

Re: [SOLVED] php7 on BunsenLabs 8.5 bunsen-hydrogen

thank you

Offline

#4 2019-01-20 13:25:40

MartynWheeler
Member
Registered: 2019-01-20
Posts: 5

Re: [SOLVED] php7 on BunsenLabs 8.5 bunsen-hydrogen

One other question: Do I need to remove php5 first? or can both exist on the same machine?

Offline

#5 2019-01-20 13:28:56

twoion
ほやほや
Registered: 2015-08-10
Posts: 2,459

Re: [SOLVED] php7 on BunsenLabs 8.5 bunsen-hydrogen

MartynWheeler wrote:

One other question: Do I need to remove php5 first? or can both exist on the same machine?

These can be installed in parallel, and configurations in /etc/php are fully separated by version. Just keep in mind to configure your application to use the correct PHP version or socket.


What can you see / On the horizon?

Offline

#6 2019-01-20 13:41:11

MartynWheeler
Member
Registered: 2019-01-20
Posts: 5

Re: [SOLVED] php7 on BunsenLabs 8.5 bunsen-hydrogen

I get the following error after running the script (it is from the apt-get update part)

Failed to fetch https://packages.sury.org/php/dists/bun … 6/Packages  HttpError404

FIXED:
followed instructions from here:
https://tecadmin.net/install-php7-on-debian/

Last edited by MartynWheeler (2019-01-20 14:01:16)

Offline

#7 2019-01-20 14:16:54

twoion
ほやほや
Registered: 2015-08-10
Posts: 2,459

Re: [SOLVED] php7 on BunsenLabs 8.5 bunsen-hydrogen

The error is due to lsb_release -sc outputting not 'jessie' but 'bunsen-hydrogen' as BL changes OS identification. In this case, you would've succeeded just by replacing bunsen-hydrogen in the created file with 'jessie'.


What can you see / On the horizon?

Offline

Board footer

Powered by FluxBB