Generally, the extension library of php source code already has curl extensions, so there is no need to download them. You can directly compile the extension.
Generally, the extension library of php source code already has curl extensions, so there is no need to download them. You can directly compile the extension.
The procedure is as follows:
1. Enter the corresponding extension directory
# Cd/usr/local/src/php-5.2.12/ext/curl
2. Call the phpize program to generate the compilation configuration file.
#/Usr/local/php5/bin/phpize
3. Call configure to generate the Makefile file, and then call make to compile and install make install.
#./Configure-with-curl =/usr/local/curl-with-php-config =/usr/local/php5/bin/php-config # make install
4. Modify the php configuration file
; Modify extension library directory extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/"; add curl extension = curl. so
5. Restart Apache.