How to install CURL extension method in Linux linux

  

If php is already compiled in the system, then you need to add new extensions. One way is to recompile php completely. Another way is to compile the extension library separately and extend it in the form of extension. The following is an example of installing the curl extension:

1. Download the curl installation package. (My php is 4.4.4, download the latest curl 7.16 can not be used, the last download 7.14, so pay attention to the version of the problem). /configure make php requires the curl directory to include and lib directory, and include There are two files, easy.h and curl.h, and libcurl.a under lib. The compiled file is available, but not in the lib directory. Originally generated into the lib/.libs directory, so copy to the lib directory

2, enter the source code directory to install the original php

cd ext cd curl phpize ./configure --with-curl =DIR make will generate the curl.so file under PHPDIR/ext/curl/moudles/.

3, copy the curl.so file to the extensions configuration directory, modify php.ini just

Copyright © Windows knowledge All Rights Reserved