Compile and install PHP extension cURL under Linux, linuxcurl
Download cURL http://pan.baidu.com/s/1hqrHWkG (curl-7.39.0.tar.gz) 3.98MB
Unzip:
[plain] view plain
copy
- tar zxvf curl-7.39.0.tar.gz
- ./configure --prefix=/usr/local/curl
[plain] view plain
copy
- make && make install
After successfully installing curl, enter the source code package of php (non-php installation address)
[plain] view plain
copy
- cd /var/soft/php-5.3.19/ext/curl
- /usr/local/php/bin/phpize Note: /usr/local/php is my php installation directory
- ./configure --with-php-config=/usr/local/php/bin/php-config --with-curl=/usr/local/curl/
- make && make install
After success, the directory where curl.so is located will appear
Open php.ini and add extension=xxx/curl.so
Just restart apache.
http://www.bkjia.com/PHPjc/1104653.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1104653.htmlTechArticleCompile and install PHP extension cURL under Linux, linuxcurl download cURLhttp://pan.baidu.com/s/1hqrHWkG( curl-7.39.0.tar.gz) 3.98MB Unzip: [plain] view plain copy tarzxvfcurl-7.39.0.tar.gz...