How to install php extension package on ubuntu

藏色散人
Release: 2023-03-08 17:54:02
Original
4266 people have browsed it

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;
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!