Install php7.2-gd extension in your armhf/arm32 Architectured Machine/Docker container
Step 1: Install gdebi
apt-get install gdebi
Note:gdebi will look for all the dependencies of the .deb file, and will install them before attempting to install the .deb file
Step 2: Download & Install php-common
$curl -o php-common.deb http://ports.ubuntu.com/pool/main/p/php-defaults/php-common_60ubuntu1_all.deb $curl -o php7.2-common.deb http://ports.ubuntu.com/pool/main/p/php7.2/php7.2-common_7.2.3-1ubuntu1_armhf.deb
$ gdebi php-common.deb $ gdebi php7.2-common.deb
Step 3: Download & Install php7.2-gd
Reference:https://ubuntu.pkgs.org/18.04/ubuntu-main-armhf/php7.2-gd_7.2.3-1ubuntu1_armhf.deb.html
$ curl -o php7.2-gd.deb http://ports.ubuntu.com/pool/main/p/php7.2/php7.2-gd_7.2.3-1ubuntu1_armhf.deb
$ gdebi php7.2-gd.deb
Step 4: Edit php.ini
Note: Check phpinfo() to get the exact path of your php.ini Note: The default path of gd.so extension is /usr/lib/php/20170718/gd.so
vim php.ini extensions=/usr/lib/php/20170718/gd.so
Step 5: Restart/Reload Apache server
service apache2 reload/restart

















