How proper enable extension=imagick.so on Google Cloud
I have a VM with Wordpress (click to deploy) on Google Cloud and need extension " ImageMagick ".
According to this article: https://cloud.google.com/appengine/docs/standard/php7/runtime#php-7.4-beta
Dynamically loadable extensions The following extensions are dynamically loadable by configuring php.ini: Memcached, gRPC, protobuf, MongoDB, ImageMagick , OpenCensus, PHPRedis
Add the line:
"extension=imagick.so"
on
/etc/php/7.4/apache2/php.ini
and:
sudo service apache2 restart
But stay dont working...
This my
php -m
:
[email protected]:/etc/php/7.4/apache2$ php -m
[PHP Modules]
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
Solutions
The problem is, Google Cloud require you install before add extesion on php-ini, just run:
sudo apt-get install php-imagick
After you can enable on
phph.ini
"extension=imagick.so"
Last, just restar apache:
sudo service apache2 restart