Home > Backend Development > PHP Tutorial > Compile and install PHP extension cURL under Linux

Compile and install PHP extension cURL under Linux

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-08 09:31:45
Original
1392 people have browsed it

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

Unzip:

tar zxvf curl-7.39.0.tar.gz
./configure --prefix=/usr/local/curl
Copy after login
make && make install
Copy after login
Copy after login

After successfully installing curl, enter the source code package of php (Non-php installation address)

cd /var/soft/php-5.3.19/ext/curl
/usr/local/php/bin/phpize     注:/usr/local/php 为我的php安装目录
./configure --with-php-config=/usr/local/php/bin/php-config --with-curl=/usr/local/curl/
make && make install
Copy after login

After success, the directory where curl.so is located will appear

Open php.ini and add extension=xxx/curl.so

Restart apache.

The above introduces the cURL compilation and installation of PHP extension under Linux, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
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
Latest Issues
curl simulated login
From 1970-01-01 08:00:00
0
0
0
Convert cURL command line to PHP cURL code
From 1970-01-01 08:00:00
0
0
0
Convert command line cURL to PHP cURL
From 1970-01-01 08:00:00
0
0
0
How to set boolean value true in php curl
From 1970-01-01 08:00:00
0
0
0
Please tell me, php curl request page shows blank
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template