Home >Backend Development >PHP Problem >How to install php extension package on ubuntu

How to install php extension package on ubuntu

藏色散人
藏色散人Original
2021-03-15 09:44:504400browse

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.

How to install php extension package on ubuntu

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn