Home  >  Article  >  Backend Development  >  Linux 下 PHP 扩展 cURL 编译安装,linuxcurl_PHP教程

Linux 下 PHP 扩展 cURL 编译安装,linuxcurl_PHP教程

WBOY
WBOYOriginal
2016-07-12 08:58:11839browse

Linux 下 PHP 扩展 cURL 编译安装,linuxcurl

下载 cURL http://pan.baidu.com/s/1hqrHWkG (curl-7.39.0.tar.gz) 3.98MB

解压:

 

[plain] view plain copy  
  1. tar zxvf curl-7.39.0.tar.gz  
  2. ./configure --prefix=/usr/local/curl  
[plain] view plain copy  
  1. make && make install  

 

安装 curl 成功后,进入 php 的源码包(非php安装地址)

 

[plain] view plain copy    在CODE上查看代码片派生到我的代码片
  1. cd /var/soft/php-5.3.19/ext/curl  
  2. /usr/local/php/bin/phpize     注:/usr/local/php 为我的php安装目录  
  3. ./configure --with-php-config=/usr/local/php/bin/php-config --with-curl=/usr/local/curl/  
  4. make && make install  

成功后出现 curl.so 的所在目录

打开 php.ini 添加 extension=xxx/curl.so

重启 apache 即可。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1104653.htmlTechArticleLinux 下 PHP 扩展 cURL 编译安装,linuxcurl 下载cURLhttp://pan.baidu.com/s/1hqrHWkG(curl-7.39.0.tar.gz) 3.98MB 解压: [plain] view plain copy tarzxvfcurl-7.39.0.tar.gz...
Statement:
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