Introduction to How to open GD2 extensions in PHP

Source: Internet
Author: User
  1. Extension=php_gd2.dll
Copy Code

Find the PHP configuration file php.ini, search Extension=php_gd2.dll, remove the previous semicolon, if not, please add directly. This situation is suitable for Windows system and compile-time support for GD PHP, save and restart Apache.

If it is compiled and installed, such as Ubuntu's Deb or redhat RPM-installed PHP, you can install this extension with a command: The form is as follows:

  1. Ubuntu:sudo Apt-get Install PHP5-GD
  2. Redhat:yum Install PHP-GD
Copy Code

FreeBSD can use Systeminstall package installation GD2 solve if it is compiled installation and does not choose to support GD need to install GD first, and then recompile PHP.

Specific details, everyone in the installation of carefully understand it, open GD2 extension, you can apply the powerful image processing in PHP. The programmer's home, I wish you all to finish well.

  • 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.