PHP extension cURL compilation and installation in Linux

Source: Internet
Author: User
: 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.