Home >Backend Development >PHP Problem >How to install php extension package on ubuntu
How to install the PHP extension package on Ubuntu: first open the command window; then install the required PHP extension library through the "apt-get install" command; finally view the installed expansion package through the "php -m" command.
The operating environment of this article: Ubuntu 5.4.0 system, PHP7.1 version, DELL G3 computer
ubuntu installs php extension and Check the extension package
Use ubuntu's software package download and installation tool: apt-get
Enter the following command to install the php extension library mcrypt, curl, gd library, 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 Check the php extension package php -m and then search specifically through the pipe grep
php --ini Check the path information of the php cli command line
[Recommended learning: "PHP Video Tutorial"]
The above is the detailed content of How to install php extension package on ubuntu. For more information, please follow other related articles on the PHP Chinese website!