Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install/enable intl and xsl extensions after installing PHP 7

Tags:

I installed php7/apache2.4/mysql5.6 via this script, but it turns out that the extensions xsl and intl are missing (need them to run Magento2).

I'm using Ubuntu 14.04.

like image 903
Henry Avatar asked Dec 15 '15 16:12

Henry


People also ask

How to enable extension in PHP?

The most common way to load a PHP extension is to include it in your php. ini configuration file.

How do I enable Intl extension?

The intl extension is enabled by default on PHP versions above 7.2. If you're noticing any errors on your site related to this extension, please Contact Support for further assistance. If your site is still running PHP 5.6, you must enable this extension manually by making a small addition to your phprc file.


2 Answers

If it is for dev purposes only, the easiest way would be use a PPA like ppa:ondrej/php-7.0 and then apt-get install php7.0-intl and apt-get install php7.0-xsl. PPAs should NEVER be used in production.

like image 125
Maddy Avatar answered Oct 01 '22 02:10

Maddy


You can run sudo apt-get install php7.0-intl to get it installed. You dont need PPA adding on 16.10 .

like image 45
Mad Avatar answered Oct 01 '22 02:10

Mad