Differences

This shows you the differences between two versions of the page.

Link to this comparison view

litespeed_wiki:php:pecl-extension:curl [2019/11/27 17:19]
qtwrk created
litespeed_wiki:php:pecl-extension:curl [2019/11/29 15:55] (current)
Lisa Clarke Copyediting
Line 1: Line 1:
-===== How to Compile cURL PHP Extension =====+====== How to Compile ​the cURL PHP Extension ​======
  
-Sometimes the lsphp-curl package ​is not with latest cURL. +Sometimes the lsphp-curl package ​does not contain the latest cURL. If this is the case, you can manually compile ​the cURL extension with the latest ​version.
- +
-This is guide for how to manually compile cURL extension with latest ​cURL+
  
 {{ :​litespeed_wiki:​php:​pecl-extension:​lsphp-curl1.jpg |}} {{ :​litespeed_wiki:​php:​pecl-extension:​lsphp-curl1.jpg |}}
  
-PHPinfo page reveals ​current ​cURL version ''​7.29.0''​ , certain ​application ​may requires ​a higher version in order to work properly.+The PHPinfo page reveals ​the currently installed ​cURL version ​is ''​7.29.0'', ​but certain ​applications ​may require ​a higher version in order to work properly.
  
-Compile and install latest ​cURL+===== Compile and Install the Latest ​cURL =====
  
 <​code>​wget https://​curl.haxx.se/​download/​curl-7.67.0.tar.gz <​code>​wget https://​curl.haxx.se/​download/​curl-7.67.0.tar.gz
Line 18: Line 16:
 make install</​code>​ make install</​code>​
  
-Now check the cURL.+===== Check the cURL Version =====
 <​code>​[root@test curl-7.67.0]#​ curl -V <​code>​[root@test curl-7.67.0]#​ curl -V
 curl 7.67.0 (x86_64-pc-linux-gnu) libcurl/​7.67.0 OpenSSL/​1.0.2k-fips zlib/1.2.7 curl 7.67.0 (x86_64-pc-linux-gnu) libcurl/​7.67.0 OpenSSL/​1.0.2k-fips zlib/1.2.7
Line 25: Line 23:
 Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL UnixSockets</​code>​ Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL UnixSockets</​code>​
  
 +===== Download the PHP Source Code =====
  
-Download the PHP source code , in example we use PHP 7.3 and compile the extension from source.+In this examplewe use PHP 7.3 and compile the extension from source.
  
 <​code>​wget https://​www.php.net/​distributions/​php-7.3.12.tar.gz <​code>​wget https://​www.php.net/​distributions/​php-7.3.12.tar.gz
Line 44: Line 43:
 </​code>​ </​code>​
  
-Now restart ​lsphp if necessary , and check phpinfo ​again.+===== Restart and Verify ===== 
 + 
 +Restart ​lsphp if necessary, and check the PHPinfo page again.
  
 {{ :​litespeed_wiki:​php:​pecl-extension:​lsphp-curl2.jpg |}} {{ :​litespeed_wiki:​php:​pecl-extension:​lsphp-curl2.jpg |}}
  • Admin
  • Last modified: 2019/11/29 15:55
  • by Lisa Clarke