Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:php:pecl-extension [2016/01/13 15:58]
Jackson Zhang [Compile From Source Code]
litespeed_wiki:php:pecl-extension [2019/11/29 15:58] (current)
Lisa Clarke [See Also] Added GD
Line 20: Line 20:
 If the extension is there, simply ''​yum install''​ and your all set. If the extension is there, simply ''​yum install''​ and your all set.
  
 +If the extension is not in our repository, you can send a request to support@litespeedtech.com requesting it's inclusion and we will evaluate the possibility of adding it. 
 ===== Use "​./​pecl install"​ command ===== ===== Use "​./​pecl install"​ command =====
 Install lsphp5x-pear or lsphp70-pear package, which will install pecl under /​usr/​local/​lsws/​lsphp5x/​bin/​. Then use the usual method of ''/​usr/​local/​lsws/​lsphp5x/​bin/​pecl install extention-name''​. Install lsphp5x-pear or lsphp70-pear package, which will install pecl under /​usr/​local/​lsws/​lsphp5x/​bin/​. Then use the usual method of ''/​usr/​local/​lsws/​lsphp5x/​bin/​pecl install extention-name''​.
Line 67: Line 68:
 You can also build the required PECL extension from source code yourself. You can also build the required PECL extension from source code yourself.
  
-Let's look at an example with the PECL imagick extension. This extension is not available in the LiteSpeed repository at the time of this writing. You can perform the following steps to build it for lsphp55 yourself.+Let's look at an example with the PECL imagick extension ​on a CentOS machine. This extension is not available in the LiteSpeed repository at the time of this writing. You can perform the following steps to build it for lsphp55 yourself.
  
   yum install epel-release   yum install epel-release
Line 94: Line 95:
  
 You can do similar with other LSPHP versions and PECL extensions. You can do similar with other LSPHP versions and PECL extensions.
 +
 +
 +Let's look at another example with the PECL imagick extension on a Ubuntu/​Debian machine. Assuming that you have install lsphp70 through LiteSpeed APT repository.
 +
 +  apt-get install libmagickwand-dev pkg-config build-essential
 +  mkdir -p ~/tmp
 +  pushd ~/tmp
 +  wget https://​pecl.php.net/​get/​imagick-3.4.3.tgz
 +  tar -xf imagick-3.4.3.tgz
 +  cd imagick-3.4.3
 +    /​usr/​local/​lsws/​lsphp70/​bin/​phpize
 +    ./configure --with-php-config=/​usr/​local/​lsws/​lsphp70/​bin/​php-config7.0
 +    make
 +    make install
 +    echo "​extension=imagick.so"​ >> /​usr/​local/​lsws/​lsphp70/​etc/​php/​7.0/​mods-available/​40-imagick.ini
 +    /​usr/​local/​lsws/​bin/​lswsctrl restart
 +   popd
 + 
 +===== See Also =====
 +
 +  * [[litespeed_wiki:​php:​pecl-extension:​curl|How to Compile the cURL PHP Extension]]
 +  * [[litespeed_wiki:​php:​pecl-extension:​gd|How to Compile the GD PHP Extension]]
  • Admin
  • Last modified: 2016/01/13 15:58
  • by Jackson Zhang