{"id":1349,"date":"2020-04-13T08:25:54","date_gmt":"2020-04-13T08:25:54","guid":{"rendered":"http:\/\/howden.net.au\/thowden\/?p=1349"},"modified":"2020-04-13T08:27:53","modified_gmt":"2020-04-13T08:27:53","slug":"install-imagick-for-wordpress-on-cpanel-whm-server","status":"publish","type":"post","link":"https:\/\/howden.net.au\/thowden\/2020\/04\/install-imagick-for-wordpress-on-cpanel-whm-server\/","title":{"rendered":"Install Imagick for WordPress on CPanel WHM Server"},"content":{"rendered":"\n<p>A quick how-to Install Imagick for WordPress on CPanel WHM Server.<\/p>\n\n\n\n<p>Running Site Health check within and updated wordpress site shows:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>One or more recommended modules are missing <\/p><p>PHP modules perform most of the tasks on the server that make your  site run. Any changes to these must be made by your server  administrator.<br>The WordPress Hosting Team maintains a list of those modules, both recommended and required, in <a rel=\"noreferrer noopener\" href=\"https:\/\/make.wordpress.org\/hosting\/handbook\/handbook\/server-environment\/#php-extensions\" target=\"_blank\">the team handbook (opens in a new tab)<\/a>.<br><br>Warning The optional module, imagick, is not installed, or has been disabled. <\/p><\/blockquote>\n\n\n\n<p>Following many of the search links to resolve this leads to using the Module Installer PECL via the WHM console, but for me I got this error:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p> WARNING: channel &#8220;pecl.php.net&#8221; has updated its protocols, use &#8220;pecl channel-update pecl.php.net&#8221; to update Warning: popen() has been disabled for security reasons in OS\/Guess.php on line 241 Warning: fgets() expects parameter 1 to be resource, null given in OS\/Guess.php on line 242 Warning: pclose() expects parameter 1 to be resource, null given in OS\/Guess.php on line 251 downloading imagick-3.4.4.tgz &#8230; Starting to download imagick-3.4.4.tgz (253,434 bytes) &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..done: 253,434 bytes 19 source files, building running: phpize Warning: popen() has been disabled for security reasons in PEAR\/Builder.php on line 465 ERROR: failed to run `phpize&#8217; <\/p><\/blockquote>\n\n\n\n<p>Continuing my search ended up at the CPanel forums and <a href=\"https:\/\/forums.cpanel.net\/threads\/pecl-with-ea4.556741\/\">a resolution for installing imagick<\/a> from cPanelMichael and a command line option &#8211; noting that I modified my command line to use ea-php73 which is the target version of php for this WordPress site. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p> <code>\/opt\/cpanel\/ea-php70\/root\/usr\/bin\/pecl install imagick<\/code> <\/p><\/blockquote>\n\n\n\n<p>Reviewing my own setup, I had already used the following script.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p> \/scripts\/installimagemagick&#8221; <br>before proceeding with the &#8220;imagick&#8221; PECL installation <\/p><\/blockquote>\n\n\n\n<p>Running the Site Health check again showed the same issue. So I restarted Apache and the PHP-FPM services and tested again. Issue resolved. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A quick how-to Install Imagick for WordPress on CPanel WHM Server. Running Site Health check within and updated wordpress site shows: One or more recommended modules are missing PHP modules perform most of the tasks on the server that make your site run. Any changes to these must be made by your server administrator.The WordPress [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-1349","post","type-post","status-publish","format-standard","hentry","category-wordpress-links"],"_links":{"self":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/1349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/comments?post=1349"}],"version-history":[{"count":3,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/1349\/revisions"}],"predecessor-version":[{"id":1352,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/1349\/revisions\/1352"}],"wp:attachment":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/media?parent=1349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/categories?post=1349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/tags?post=1349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}