• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question PHP extension intl is missing from your system

GREG49

New Pleskian
Hello,

i want install Claroline Connect application on my Debian serveur.
I used GIT extension to download this application
I follow the instructions to install Claroline Connect : Installer Claroline Connect · Claroline Connect Documentation
but i have a problem with PHP extension intl.
I have insert a line command in my terminal : sudo apt-get install php5.6-intl -y
But :
E: Unable to locate package php5.6-intl
E: Couldn't find any package by regex 'php5.6-intl'

See files attachments
 

Attachments

  • CAPTURE 2018-05-09 à 18.02.17.jpg
    CAPTURE 2018-05-09 à 18.02.17.jpg
    305.7 KB · Views: 10
  • CAPTURE 2018-05-09 à 18.05.54.jpg
    CAPTURE 2018-05-09 à 18.05.54.jpg
    96.4 KB · Views: 9
I suppose that problem in that you try to use system PHP version for OS vendor instead of PHP version of your domain. Check version of PHP in PHP Settings of your domain subscription and use it from /opt/plesk/php/NUMBER_OF_VERSION/bin/
All these Plesk PHP versions for site hosting have already enabled intl extension, You can check it with command

# grep -R intl /opt/plesk/php/*/etc/*

or

# rpm -qa | grep intl
 
thanks for you answer.
Here is the result :

greg@localhost:~$ grep -R intl /opt/plesk/php/*/etc/*
/opt/plesk/php/5.6/etc/php.d/intl.ini:; Enable intl extension module
/opt/plesk/php/5.6/etc/php.d/intl.ini:extension=intl.so
/opt/plesk/php/5.6/etc/php-fpm.d/FOAD-PRESS.FR.conf:php_value[extension] = intl.so
/opt/plesk/php/5.6/etc/php.ini:;extension=php_intl.dll
/opt/plesk/php/5.6/etc/php.ini:[intl]
/opt/plesk/php/5.6/etc/php.ini:;intl.default_locale =
/opt/plesk/php/5.6/etc/php.ini:; happens within intl functions. The value is the level of the error produced.
/opt/plesk/php/5.6/etc/php.ini:;intl.error_level = E_WARNING
/opt/plesk/php/5.6/etc/php.ini:;intl.use_exceptions = 0
/opt/plesk/php/7.0/etc/php.d/intl.ini:; Enable intl extension module
/opt/plesk/php/7.0/etc/php.d/intl.ini:extension=intl.so
/opt/plesk/php/7.0/etc/php.ini:;extension=php_intl.dll
/opt/plesk/php/7.0/etc/php.ini:[intl]
/opt/plesk/php/7.0/etc/php.ini:;intl.default_locale =
/opt/plesk/php/7.0/etc/php.ini:; happens within intl functions. The value is the level of the error produced.
/opt/plesk/php/7.0/etc/php.ini:;intl.error_level = E_WARNING
/opt/plesk/php/7.0/etc/php.ini:;intl.use_exceptions = 0
/opt/plesk/php/7.1/etc/php.d/intl.ini:; Enable intl extension module
/opt/plesk/php/7.1/etc/php.d/intl.ini:extension=intl.so
/opt/plesk/php/7.1/etc/php.ini:;extension=php_intl.dll
/opt/plesk/php/7.1/etc/php.ini:[intl]
/opt/plesk/php/7.1/etc/php.ini:;intl.default_locale =
/opt/plesk/php/7.1/etc/php.ini:; happens within intl functions. The value is the level of the error produced.
/opt/plesk/php/7.1/etc/php.ini:;intl.error_level = E_WARNING
/opt/plesk/php/7.1/etc/php.ini:;intl.use_exceptions = 0


is it correct ?
 

Attachments

  • CAPTURE 2018-05-14 à 20.06.05.jpg
    CAPTURE 2018-05-14 à 20.06.05.jpg
    134.4 KB · Views: 1
I think the problem is that the command : composer update --prefer-dist --no-dev
use for PHP the path: / etc / php5 / cli / *
Plesk uses the path: /opt/plesk/php/5.6/etc/*

How to solve this problem ?


greg@localhost:~/httpdocs$ composer update --prefer-dist --no-dev
> php scripts/check.php
> php scripts/save-repo.php
Class Claroline\CoreBundle\Library\Maintenance\MaintenanceHandler is not autoloadable, can not call pre-update-cmd script
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for claroline/distribution 11.x-dev -> satisfiable by claroline/distribution[11.x-dev].
- claroline/distribution 11.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.

To enable extensions, verify that they are enabled in your .ini files:
- /etc/php5/cli/php.ini
- /etc/php5/cli/conf.d/00-ioncube-loader-5.6.ini
- /etc/php5/cli/conf.d/05-opcache.ini
- /etc/php5/cli/conf.d/10-pdo.ini
- /etc/php5/cli/conf.d/20-curl.ini
- /etc/php5/cli/conf.d/20-gd.ini
- /etc/php5/cli/conf.d/20-imap.ini
- /etc/php5/cli/conf.d/20-json.ini
- /etc/php5/cli/conf.d/20-mysql.ini
- /etc/php5/cli/conf.d/20-mysqli.ini
- /etc/php5/cli/conf.d/20-pdo_mysql.ini
- /etc/php5/cli/conf.d/20-pdo_sqlite.ini
- /etc/php5/cli/conf.d/20-readline.ini
- /etc/php5/cli/conf.d/20-sqlite3.ini
- /etc/php5/cli/conf.d/20-xsl.ini
- /etc/php5/cli/conf.d/zend_extensions_psa.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
greg@localhost:~/httpdocs$
 
Instead of default command:

# composer [options] [arguments]

use the following command:

# /opt/plesk/php/5.6/bin/php /usr/lib/plesk-9.0/composer.phar [options] [arguments]
 
Back
Top