• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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