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