Linux As a mature and stable operating system, it has many advantages. So most people learn Linux operating system. This article introduces the installation method of php extension cURL under Linux. I hope you can learn the installation of php extension cURL under Linux.
Method one
Install cURL
# wget http://curl.haxx.se/download/curl-7.17.1.tar.gz [url=http: //curl.haxx.se/download/curl-7.15.0.tar.gz][/url] # tar -zxf curl-7.17.1.tar.gz # ./configure –prefix=/usr/local/Curl # make; make install
Install php
Just open the switch –with-curl=/usr/local/curl
.
This extension library is still very good and is a valid alternative to fsockopen and more.
Method 2
Enter the source directory of the original php,
cd ext cd curl phpize ./configure –with-curl=DIR make
The curl.so file will be generated under PHPDIR/ext/curl/moudles/.
Copy the curl.so file to the extensions configuration directory, modify php.ini just fine
The above two are the php extension cURL installation method under Linux.
sh# wget http://curl.haxx.se/download/curl-7.18.2.tar.gz
sh# tar -zxvf curl-7*.gz
sh# cd curl*
sh# ./configure --prefix=/usr/local/curl
sh# make
sh# make install sh# Cd /usr/local/src/php-5.2.1 (This is the source directory when the source is installed with php)
sh# cd ./ext/curl
sh# phpize
sh# ./configure --with-curl=/usr/local/curl
When running ./configure, if prompted
configure: error: Cannot find php-config. Please use --with-php-config=PATH
Please use:
./configure --with-php-config=/php-install-path/bin/php-config # Instead of using php.ini
sh# make
sh# cp modules/curl.so /usr/local/lib/php/extensions (copy modules/curl.so to php extensions Under the directory)
(Modify the php.ini file, add: extension=curl.so)
sh# apachectl -k restart (Restart apache, php should have curl extension) php. Ini modify method, according to your The actual curl.so file location to write, compare my compiled position: /usr/local/php/lib/php/extensions/no-debug-zts-20060613/then php.ini plus extension="/usr /local/php/lib/php/extensions/no-debug-zts-20060613/curl.so"
Computer Store News: According to the latest report from a German technology website, Valves Steam B
Too many open files Errors are common faults in Linux systems. Solutions can be easily found on the
We have been doing a task in the usual way until we know there is a better way to handle it. As a fo
nmap is a network port scanner. Its main function is to check a group of target hosts to see which
10 shortcuts under Ubuntu Linux
Linux shell different binary data conversion (binary, octal, hexadecimal, base64)
How to use ReiserFS file system in Linux environment
Linux operation and maintenance commonly used commands and knowledge Daquan
TCP server and client implementation under Linux tutorial
Adobe: Flash will terminate local support for Linux systems
Linux data recovery practical tutorial
Illegal instruction error solution
Summary of methods using Markdown on Linux
How to extract Win10 icon Win10 preview system icon extraction tutorial
What can I do if Win7 cannot open a file with a custom program?
Windows7 activation information backup method from Vista method
How to turn off Windows 8.1 app auto update
Microsoft Windows Active Directory Remote Stack Overflow Defect
Under the Linux system, use the tree command to implement the tree structure display directory
LOL summoner birthday gift event website share LOL how to query birthday
Win7 system qq group connection video server failed error code 21 solution
Win10 system wake-up sleep automatically restarts the solution