Home  >  Article  >  Backend Development  >  How to install gd extension in ubuntu php

How to install gd extension in ubuntu php

藏色散人
藏色散人Original
2021-10-19 10:31:062035browse

Ubuntu PHP installation gd extension method: 1. Find the gd version you want to install PHP; 2. Install it through the "apt-get install php7.2-gd" command.

How to install gd extension in ubuntu php

The operating environment of this article: ubuntu 16.04 system, PHP7.2 version, DELL G3 computer

How to install the gd extension on ubuntu php?

Install gd extension in php under ubunutu

apt-cache search php-gd Find the gd version you want to install php

apt-get install php7.2-gd installation

php -m installation successful

If you need to restart php

Find out whether the php running mode is apache2 or php-fpm

systemctl restart xxx

Recommended study: "PHP Video Tutorial"

The above is the detailed content of How to install gd extension in ubuntu php. 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