How to install PHP GD Library with Freetype | JPEG | libJPEG | XPM | WebP Support enabled on Azure App / Debian

How to install PHP GD Library with Freetype | JPEG | libJPEG | XPM | WebP Support enabled on Azure App / Debian

No alt text provided for this image

Navigate to Menu and Click on the App Services

No alt text provided for this image

Open /Create the app that you want to install the GD Library and click on the Configuration Tab

No alt text provided for this image

Navigate to the General Settings Tab on the top menu

No alt text provided for this image

In the Startup Command, type the Copy & Paste the line below as shown in the image.

/home/startup.sh
No alt text provided for this image

Next, scroll down on the left menu and navigate to the SSH under the Deployment Tools section, and click on the GO

No alt text provided for this image

Note: Any data outside '/home' is not persisted

No alt text provided for this image

Create a file (startup.sh) in the home directory.

vi startup.sh

Copy & Paste the below Code

apt-get update
apt-get install -y libwebp-dev libjpeg62-turbo-dev libpng-dev libxpm-dev libfreetype6-dev
docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf
docker-php-ext-install gd
apache2ctl -D FOREGROUND

Save and Exit from SSH

Stop and Restart the App from the Overview section.

No alt text provided for this image

Wait for 3 - 5 min. Then Azure App will Start and Install the libraries automatically.

Congratulations. Now you have successfully installed the GD Library with Freetype | JPEG | libJPEG | XPM | WebP Support enabled on Azure App.

要查看或添加评论,请登录

Vignesh Sivakumar的更多文章

社区洞察

其他会员也浏览了