CentOS Install GD Library

Source: Internet
Author: User
Tags install php centos server
The default CentOS server installed after the operation of the site does not support the GD library, the internet has a lot of tutorials very complex about some of the installation of the GD library method.
It doesn't have to be so complicated at all.

Because CentOS will support the GD library PHP as another version of PHP to publish, if you need the server to support the GD library, just to directly install with the GD Library version of PHP.

The following are the easiest ways to install the GD library:

There are only 2 commands for the specific operation:

To run the online installation of PHP with the GD Library command:
Yum-y Install PHP-GD

Restart the APACHCE service for the installed GD library to take effect
/ETC/RC.D/INIT.D/HTTPD Restart (Service httpd restart)

By the way, GD installation path
/etc/php.d/gd.ini <---This is to let PHP support GD Oh, this is one of the characteristics of CentOS, do not have to write all things in php.ini this file, just need to write *.ini file in the/etc/php.d/folder OK, the system will automatically read the *.ini in this directory into php.ini
/usr/lib/php/modules/gd.so <----This is GD's file.
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.