Page 1 of 1

how to update PHP from 5 to 7

Posted: Mon Jun 17, 2019 8:26 am
by gabriel.rosseel
on Fri May 05, 20 I asked in the beginners section under the topc "PHP Extension Intl missing "how to update PHP from 5 to 7"
but I never succeeded; therefore I dare to ask it in the Advanced users section notwithstanding I am NOT an advanced user.
This is the original message:

Recently I installed ldapaddressbook 0.40 on my intranet website.
I get following error: The following PHP extension modules must be installed and enabled in order to use the address book: intl (internationalization Support)
can anyone help me installing that Intl PHP extension module?
I use as OS: Raspbian Stretch, PHP version 5.6.30 and Apache Version 2.4.24

I got the advice to install: "sudo apt install php-intl" but to no avail.

with the command "sudo apt list --installed" I saw that besides php 5 also php 7 was installed.
but apparently php 5 is used.
also I run Webmin that says that all installed packages are up to date.
I hesitate to remove php 5 as I am afraid the other things might not work.

today I ran the following found on " ... n-stretch/":

apt-get -y install php7.0 libapache2-mod-php7.0
service apache2 restart

afterwards I ran
but I still see:
PHP Version 5.6.30-0+deb8u1

Can anyone help me please?

Re: how to update PHP from 5 to 7

Posted: Mon Jun 17, 2019 12:34 pm
by klricks
The Raspbian Stretch repository contains PHP7.0 and not PHP5.
Also Apache 2.4.25 not 2.4.24
Not sure why you have older versions? Did you upgrade from Jessie to Stretch? Or did you start from a fresh download of Stretch?

Re: how to update PHP from 5 to 7

Posted: Mon Jun 17, 2019 1:31 pm
by gabriel.rosseel
Yes, I upgraded from Jessie to Stretch.