As a mature and stable operating system, Linux has many advantages. So most people learn about the Linux operating system. This article describes how to install php extension cURL in Linux. I hope you can learn how to install php extension cURL in Linux.
Method 1
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 enable the switch-with-curl =/usr/local/curl
You can.
This extended library is a great alternative to fsockopen and so on.
Method 2
Go to the source code directory for installing the original php,
- cd ext
- cd curl
- phpize
- ./configure –with-curl=DIR
- make
The curl. so file is generated under PHPDIR/ext/curl/moudles.
Copy the curl. so file to the extensions configuration directory and modify php. ini.
The above two methods are used to install php extension cURL in Linux.
- Easily connect to the campus network using Linux
- Fully Understand Linux Process Technology
- Introduction to the password command in Linux
- Learn about Linux regulatory commands
- How to view the ps-aux command of all processes in Linux