Linux PHP configuration FTP extension

Source: Internet
Author: User

In the LINUX+NGINX+PHP+MYSQL environment, no PHP FTP extension was added to the deployment.

1, find the installed PHP source Package extracted folder
Go to the extension directory to FTP #/ROOT/PHP-5.3.6/EXT/FTP (Press your own software path)

2. Call the Phpize program to generate the compilation configuration file
[Email protected] ftp]#/usr/local/php/bin/phpize

Note: Cannot find CONFIG.M4.

Make sure this you run '/home/admin/php/bin/phpize ' in the top level source directory of the module

If the above error occurs, check whether to enter the FTP extension directory

3. Compile the extension library and perform the following configure and make commands, respectively.


#configure这一步执行通过后, and then execute the make command

When make is executed successfully, the resulting extension library file is in the modules subdirectory of the current directory,

[Email protected] ftp]# CD modules/
[[email protected] modules]# ls

4. Edit the php.ini document, locate the Extension_dir directory, and copy the compiled extension file to extension
Find line No. 491 See extension_dir = "//usr/local/php/lib/php/extensions/"

[[email protected] modules] #cp

5. In php.ini Add extension library location, set the extension library to be added.
Add extension = "" at 612

6. Restart PHP-FPM Service
If you do not restart the FPM service properly, you can directly
#killall PHP-FPM
And then execute

Linux PHP configuration FTP extension

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: 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.