Home > php教程 > php手册 > Linux 下 PHP 扩展 cURL 编译安装,linuxcurl

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

WBOY
Release: 2016-06-13 08:45:22
Original
961 people have browsed it

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    
  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 即可。

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template