How to install php ftp module

青灯夜游
Release: 2023-03-13 07:14:01
Original
1904 people have browsed it

Method: 1. Execute the "cd php-5.2.13/ext/ftp" command to enter the source directory; 2. Run phpize to generate configure; 3. Compile and specify php-config; 4. Use the make command to compile and install ;5. Open the php.ini file, configure the module directory, save and exit.

How to install php ftp module

The operating environment of this tutorial: CentOS 6 system, PHP version 7.1, Dell G3 computer.

How to install the php ftp module (php-FTP extension)

Enter the source code directory

cd php-5.2.13/ext/ftp
Copy after login

Run phpize to generate configure

/usr/local/php/bin/phpize
Copy after login

Compile, specify php-config, note that php-config here is not php.ini

./configure --with-php-config=/usr/local/php/bin/php-config --enable-ftp
#上面可以添加--enable-ftp,也可以不用添加
Copy after login

Compile and install

make && make install
Copy after login

Edit the php.ini file and specify the directory to which PHP reads the module

vi /usr/ local/php/etc/php.ini

#编辑扩展模块目录
extension_dir="/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
#Load模块
extension=ftp.so
Copy after login

Save and exit

At this point, the loading of the ftp extension is successfully completed.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to install php ftp module. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!