: This article describes how to compile and install PHP extension cURL in Linux. For more information about PHP tutorials, see. Download the cURL http://pan.baidu.com/s/1hqrHWkG (curl-7.39.0.tar.gz) 3.98 MB
Decompress:
Tar zxvf curl-7.39.0.tar.gz./configure -- prefix =/usr/local/curl
Make & make install
After curl is successfully installed, enter the php source code package (not the php installation address)
Cd/var/soft/php-5.3.19/ext/curl/usr/local/php/bin/phpize note:/usr/local/php for my php installation directory. /configure -- with-php-config =/usr/local/php/bin/php-config -- with-curl =/usr/local/curl/make & make install
The curl. so directory appears
Open php. ini and add extension = xxx/curl. so
Restart apache.
The above introduces the PHP extension cURL compilation and installation in Linux, including some content, and hope to be helpful to friends who are interested in PHP tutorials.