Ubuntu Installation Php_intl Extensions

Source: Internet
Author: User
Tags intl

The PHP Intl class is really handy in I18n's website, allowing you to rely on the end user area to easily output the correct date format.

After using yii2-app-ecom, after initialization, the Access home page appears:

The default currency code for the formatter are not defined.

Watched issue the default currency code for the formatter was not defined #7, said to install the php_intl extension.

Installation can be done by:

sudo apt-get Install Php_intl

When you're done installing, remember to restart Apache

sudo service apache2 restart

You can check that those extensions are running

Php-m

Of course, you can also use PHP code to check whether Intl allows

Var_dump (extension_loaded ('Intl'));

Article Reference Links:

    1. Ubuntu:enabling the PHP INTL EXTENSION

    2. Install PECL packages on Ubuntu (thought to install PECL, but to the last step, installation fails, requires PHP version >= 7.0)

Ubuntu Installation Php_intl Extensions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.