Nginx and PHP installation and configuration five Linux with phpize install PHP gd extension

Source: Internet
Author: User
Article to share the content is about Nginx and PHP installation and configuration five of Linux with Phpize installed PHP gd extension, has a certain reference value, the need for friends can refer to

1. Generate So File

"1" sudo yum install php-gd2 png JPEG freetype//yum Installation extension

The "2" cd/php/ext/gd//php folder was the one I extracted from the PHP installation package.

"3" phpize./configure--with-png-dir--with-freetype-dir--with-jpeg-dir--with-gd

"4"./configure--with-png-dir--with-freetype-dir--with-jpeg-dir--with-gd

"5" sudo make

"6" Make install



2. copy php.ini file


Introduction of So's dir and open extension so

extension=gd.so//Add this line and restart the PHP service


3. Restart the server

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.