CentOS System install GD Library command

Source: Internet
Author: User
Tags install php centos


To run the online installation of PHP with the GD Library command:

Yum-y Install PHP-GD

The system will download the GD library on its own website, and then it will automatically perform the installation

Restart the APACHCE service for the installed GD library to take effect

Service httpd Restart

The installation path of GD

/etc/php.d/gd.ini <---This is to allow PHP to support GD Oh, this is one of the characteristics of CentOS, do not have to write all the things in
PHP.ini This file, just need to write *.ini file in the/etc/php.d/folder on it, the system will automatically read the *.ini of this directory into the php.ini

/usr/lib/php/modules/gd.so <----This is GD's file.

The/ETC/PHP.D folder will then produce the GD library file Gd.ini, indicating that you have been installed successfully. There is also no need to add Extension=php_gd2.dll to the PHP profile php.ini because the *.ini files in the PHP.D folder are automatically read to the PHP configuration file php.ini.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.