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

99封情书 提交于 2019-11-30 08:05:53

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.

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

1st you need to add ppa repository to server

this can be done by :

sudo add-apt-repository ppa:ondrej/php

when PPA repo installed, update the local package cache by :

sudo apt-get update

after this you need to run following command to install intl & xsl extensions

sudo apt-get install php7.0-intl
sudo apt-get install php7.0-xsl

check the php extensions by :

php -m

if the extension does load on browser , than you need to check your php.ini for apache2

that can be found by calling <?php phpinfo();?> in info.php file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!