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

Similar questions

Rewrite URL requests for an .html extension to lowercase, remove extension and then add trailing slash
I'm working on a WordPress website that has some '.html' in the root folder (previous developer) and I need to convert all requests made for a .html only. For a successful script it needs to: This is my solution so far and it does everything except convert the URL to lowercase and also causes no conflicts to the WordPress URL structures: ...
Redirect '.php' extension to non-extension url on WordPress page in Azure through web.config
Dependencies: I'm running a WordPress site on an Azure App Service. The Goal: If anyone visits : example.com/my-page.php They are then redirected to: example.com/my-page/ OR (without the backslash): example.com/my-page I've looked all over StackOverflow to find a solution, but nothing has been WordPress/Azure specific, and hence didn't work. The an...
Post type cloud like tag cloud?
Anyone know if it's possible to create something similar to the wordpress built in tag cloud (wp_tag_cloud) but instead of displaying tags, display custom post types? Thanks
How can I create post title cloud (instead of tag cloud) in Wordpress?
I want to create a cloud of titles of the existing posts. Just like a tag cloud as seen in the following image, but there must be post titles instead of tags. How can I do this? http://news.techgenie.com/files/Tag-Cloud1.jpg
Trying to run Wordpress on Google App Engine with Google SQL Cloud
Warning: mysql_connect(): MySQL server has gone away in /base/data/home/apps/s~vidaaoblog/wp.372917300827551979/wordpress/wp-includes/wp-db.php on line 1147 Warning: mysql_connect(): Error while reading greeting packet. PID=-1 in /base/data/home/apps/s~vidaaoblog/wp.372917300827551979/wordpress/wp-includes/wp-db.php on line 1147 Warning: mysql_conn...
Wordpress image slider on Google App Engine can't access images on Google Cloud Storage
I have set up a Wordpress web site using the Customizr theme, including an image slider. Everything works perfectly on my local computer, but when I deploy to Google App Engine (GAE), the images aren't displayed in the slider. I have uploaded them, and I can see them in the wp-admin Media section. They are stored on Google Cloud Storage with URLs l...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy .