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

Link to this comparison view

Both sides previous revision Previous revision
litespeed_wiki:php:pecl-extension:gd [2019/11/27 17:40]
litespeed_wiki:php:pecl-extension:gd [2019/11/29 16:04] (current)
Lisa Clarke Copyediting
Line 1: Line 1:
-===== How to Compile GD PHP Extension ======+====== How to Compile ​the GD PHP Extension ======
-Sometimes the lsphp-gd package is not up-to-date which may miss some features like webp support +Sometimes the lsphp-gd package is not up-to-date, in which case it may be missing ​some featureslike WebP support. If this happens, you can manually compile ​the GD extension ​to include the new features.
- +
-This is guide for how to manually compile GD extension ​with webp support+
 {{ :​litespeed_wiki:​php:​pecl-extension:​lsphp-gd1.jpg |}} {{ :​litespeed_wiki:​php:​pecl-extension:​lsphp-gd1.jpg |}}
-=== Install ​dependencies ​===+===== Install ​Dependencies =====
 <​code>​yum install -y lsphp73-devel gcc libjpeg-turbo-devel libpng-devel libXpm-devel freetype-devel libwebp-devel</​code>​ <​code>​yum install -y lsphp73-devel gcc libjpeg-turbo-devel libpng-devel libXpm-devel freetype-devel libwebp-devel</​code>​
-In this example we use lsphp73 , please change it to other appropriate ​PHP version number if needed.+===== Download the PHP Source Code =====
 +In this example we use ''​lsphp73''​. Please change it to another appropriate PHP version number if necessary.
 <​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 24: Line 23:
 make install</​code>​ make install</​code>​
-Restart lsphp process ​if necessary and check phpinfo ​page again.+===== Restart and Verify ===== 
 +Restart lsphp if necessaryand check the PHPinfo ​page again.
 {{ :​litespeed_wiki:​php:​pecl-extension:​lsphp-gd2.jpg |}} {{ :​litespeed_wiki:​php:​pecl-extension:​lsphp-gd2.jpg |}}
  • Admin
  • Last modified: 2019/11/29 16:04
  • by Lisa Clarke