This article describes how to install the PHP curl extension under Linux. Share with you for your reference, the details are as follows: I encountered such a problem during development today, which is how to install the curl extension of PHP under Linux. My LNMP environment was originally compiled and installed, not installed using YUM. My environment: Linux: CentOs 6.4 Solution: 1. Enter the PHP source directory, which is the address where PHP was downloaded to the server and decompressed before. cd /usr/local/src/php-5.6.30 2. Run ext/curl in the PHP source directory cd ext/curl 3. Call the phpize program to generate a compiled configuration file /usr/local/php/bin/phpize 4. Call configure to generate Makefile ./configure --with-curl=/usr/local/curl --with-php-config=/usr/local/php/bin/php-config 5. Compile and install make & make install At this point, the path to generate the file curl.so will be prompted: /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/ 6. Modify the php.ini file vim /usr/local/php/lib/php.ini extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/curl.so 7. Detection /usr/local/php/bin/php -m If you see the curl item, it means the installation is successful 8. Restart php-fpm pkill -9 php-fpm ./sbin/php-fpm OK! I hope this article will help you configure your Linux server. You may also be interested in:
|
<<: Detailed explanation of the use of find_in_set() function in MySQL
>>: VUE+Canvas realizes the whole process of a simple Gobang game
Mysql is a mainstream open source relational data...
Table of contents 1. Introduction 2. The differen...
1 What is BEM Naming Standard Bem is the abbrevia...
This article shares the specific code of JS to ac...
1. Go to the location where you want to store the...
Socket option function Function: Methods used to ...
Table of contents Preface 1. Why do cross-domain ...
The color presentation on a web page will be affec...
This article records the specific method of insta...
What is DOM? With JavaScript, you can reconstruct...
need: Merge identical items of one field and sort...
Table of contents 1. Numeric Type 1.1 Classificat...
How to view files in a docker image 1. If it is a...
History of HTML development: HTML means Hypertext...
1. Use the installation package to install MySQL ...