How to add curl extension to php under linux_PHP tutorial

WBOY
Release: 2016-07-21 15:25:40
Original
688 people have browsed it

The steps are as follows:

1. Go to the corresponding extension directory

# cd /usr/local/src/php-5.2.12/ext/curl

2. Call phpize The program generates a compilation configuration file

# /usr/local/php5/bin/phpize

3. Call configure to generate a Makefile, then call make to compile and make install to install

# ./configure -with-curl=/usr/local/curl -with-php-config=/usr/local/php5/bin/php-config# make# make install

4. Modify php configuration File

; modify the extension library directory extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/"; add curl extension extension = curl.so
5. Just restart Apache.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/324080.htmlTechArticleThe steps are as follows: 1. Go to the corresponding extension directory # cd /usr/local/src/php-5.2.12 /ext/curl 2. Call the phpize program to generate the compilation configuration file # /usr/local/php5/bin/phpize 3. Call configure to generate...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!