pecl install gd code example Example: how to get php ext-gd with [gd] extension=/path/to/gd.so # use the gd.so absolute path here