ubuntu安装php扩展包的方法:首先打开命令窗口;然后通过“apt-get install”命令安装需要的php扩展库;最后通过“php -m”命令查看安装的扩展包。

本文操作环境:Ubuntu 5.4.0系统、PHP7.1版,DELL G3电脑
ubuntu 安装php 扩展和查看扩展包
利用ubuntu的软件包下载、安装工具:apt-get
输入下面的命令即可安装 php扩展库mcrypt、curl、gd库、mbstring、simplexml、apt-get install php-mcrypt;
apt-get install php-curl;
apt-get install php-gd;
apt-get install php-mbstring;
apt-get install php-simplexml;
php 查看 php扩展包 php -m 然后具体可以通过管道grep进行搜索了
php --ini 查看php cli 命令行的路径信息
【推荐学习:《PHP视频教程》】