How does php enable gd2 extension?

Source: Internet
Author: User
How does php enable gd2 extension php after How to enable the gd2 extension standard to install apache and php? if you need the support of the gd Library, just execute the following command: apt-getinstallphp5-gd to find the php configuration file php. ini, search for extensionphp_gd2.dll, and remove the semicolon. if this is not directly added, it is suitable for windows and how to enable gd2 extension when gd php is supported during compilation.
How to enable gd2 extension in php

After standard installation of apache and php, if you need the support of the gd library, you only need to execute the following command to OK:
Apt-get install php5-gd


Find the php configuration file php. ini, search for extension = php_gd2.dll, and remove the semicolon;
If this is not directly added, it is applicable to the windows system and php that supports gd during compilation. just save it and restart apache.
For example, deb of Ubuntu. Run the command to install php installed by redhat rpm.
Ubuntu: sudo apt-get install php5-gd
Redhat: yum install php-gd
FreeBSD can use the package of systeminstall to install gd2.
If it is compiled and installed and does not support gd, you need to install gd first, and then re-compile php

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.