No need to recompile PHP join FTP extension solution

Source: Internet
Author: User
Tags config ftp ini join

First, enter the source directory

CD php-5.2.13/ext/ftp

#运行phpize生成configure

/usr/local/php/bin/phpize

#编译, designate Php-config, notice the php-config here, not php.ini

./configure--with-php-config=/usr/local/php/bin/php-config

#上面可以添加--enable-ftp, or you can not add

#编译安装

Make;make Install

#生成一个目录来存放扩展的模块

Mkdir/usr/local/php/etc/php/ext

#复制ftp. So to the module directory

cp/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/ftp.so/usr/local/php/etc/ext/

#编辑php. ini file, specify the directory in which PHP reads the module

Vi/usr/local/php/etc/php.ini

The code is as follows:

Extension_dir= "/usr/local/php/etc/ext"

#Load模块

Extension=ftp.so

#保存退出

At this point, the FTP extension has completed successfully loading.

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.