Skip to content

Instantly share code, notes, and snippets.

@ashishakya
Created March 31, 2025 08:04
Show Gist options
  • Select an option

  • Save ashishakya/5ec70e9a88587f3bc1c98de9e0b88827 to your computer and use it in GitHub Desktop.

Select an option

Save ashishakya/5ec70e9a88587f3bc1c98de9e0b88827 to your computer and use it in GitHub Desktop.
Elastic Bean Stalk .ebextensions file configuration
packages:
yum:
ImageMagick: []
ImageMagick-devel: []
commands:
01_install_imagickphp:
cwd: /tmp
test: "php -r \"exit(extension_loaded('imagick') ? 1 : 0);\""
command: |
wget https://pecl.php.net/get/imagick -O imagick \
&& tar xvzf imagick \
&& cd imagick-* \
&& phpize \
&& ./configure \
&& make \
&& make install \
&& echo extension=imagick.so > /etc/php.d/imagick.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment