Installing GD extensions and FTP extensions under Linux

Source: Internet
Author: User
Tags zts

FTP extension

1, enter the PHP installation source package, find the Ext FTP, enter

Cd/usr/local/mysql/support-files/php-7.0.12/ext/ftp

2,/usr/local/php/bin/phpize

3./configure--with-php-config=/usr/local/php/bin/php-config--enable-ftp

4. Make && make install

5, Vim/etc/php.ini add: extension=ftp.so

6. Restart Apache,/usr/local/apache/bin/apachectl restart

7. See if the installation was successful:/usr/local/php/bin/php-m

Find the FTP instructions successfully

GD expansion

1: Install GD's dependency package

Yum-y Install GD gd2 gd-devel gd2-devel zlib freetype

To install JPEG:

wget http://www.ijg.org/files/jpegsrc.v9b.tar.gz

TAR-XVF jpegsrc.v9b.tar.gz

./configure--prefix=/usr/local/jpeg--enable-shared--enable-static

Make && make install

2: Go to PHP extensions directory compile extension

Cd/usr/local/php/include/php/ext/gd

/usr/local/php/bin/phpize

To compile the GD extension:

./configure--with-php-config=/usr/local/php/bin/php-config-with-png-dir--with-freetype-dir--with-jpeg-dir=/usr /local/jpeg-with-zlib-dir--WITH-GD

Make

Make install

This is a hint: Installing Shared extensions:/usr/local/php/lib/php/extensions/no-debug-non-zts-20121212 (this path is the path to the extension)

cd/usr/local/php/lib/php/extensions/no-debug-non-zts-20121212

You can see the extension: The gd.so extension has been compiled successfully

Installing GD extensions and FTP extensions under Linux

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.