gabriel.rosseel
Posts: 133
Joined: Fri May 05, 2017 8:21 am

PHP Extension Intl missing

Sun Jun 09, 2019 7:04 am

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 heip me installing that Intl PHP extension module?
I use as OS: Raspbian Stretch, PHP version 5.6.30 and Apache Version 2.4.24
Thanks for any help.

Andyroo
Posts: 3830
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: PHP Extension Intl missing

Sun Jun 09, 2019 8:19 pm

Not sure if you know of the PHP function guide?

This is the section of international language support https://www.php.net/manual/en/book.intl.php

I would make a backup first as these notes are a little behind your version!
Need Pi spray - these things are breeding in my house...

fbe
Posts: 485
Joined: Thu Aug 17, 2017 9:08 pm

Re: PHP Extension Intl missing

Sun Jun 09, 2019 8:47 pm

Your PHP version is quite unusual for Raspbian Stretch. You need to figure out the package name, you have to install. Raspbian Stretch has php7.0 in its repository.

Code: Select all

sudo apt install php-intl
would try to install the package php7.0-intl and most likely fails if a package php5.6 is installed...

gabriel.rosseel
Posts: 133
Joined: Fri May 05, 2017 8:21 am

Re: PHP Extension Intl missing

Mon Jun 10, 2019 9:29 am

I tried sudo apt install php-intl as you mentioned but as you predicted it failed (I still run the previous PHP version)
I looked up how to uninstall a package: sudo apt-get --purge remove <package>
but I can't find the exact name of the package to uninstall
Can you help me please?

gabriel.rosseel
Posts: 133
Joined: Fri May 05, 2017 8:21 am

Re: PHP Extension Intl missing

Mon Jun 10, 2019 10:55 am

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.
Am I right in doing so?

Return to “Beginners”