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

人走茶凉 提交于 2019-11-29 11:03:54

问题


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.


回答1:


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.




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/34294852/how-to-install-enable-intl-and-xsl-extensions-after-installing-php-7

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