You are not logged in.
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
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).
Offline
thank you
Offline
One other question: Do I need to remove php5 first? or can both exist on the same machine?
Offline
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.
Offline
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
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'.
Offline