Topic on Project:Support desk

Thumbnail errors: /usr/bin/convert: not found Error code: 127

9
2003:C5:FF33:C872:F027:A7D4:4368:A739 (talkcontribs)
MediaWiki 1.35.1
PHP 7.3.26 (fpm-fcgi)
MariaDB 10.1.47-MariaDB-0ubuntu0.18.04.1
ICU 60.2

Hi! I moved my Wiki from Shared Hosting to a V-Server and upgrade from 1.35.0 to 1.35.1. It works fine but I get this thumnail error: <nowiki>sh: 1: /usr/bin/convert: not found Error code: 127</nowiki>

Malyacko (talkcontribs)

Either you'll have to install ImageMagick on the server, or if ImageMagick is installed then fix $wgImageMagickConvertCommand in the MediaWiki configuration so MediaWiki can find it. See also Manual:Errors and symptoms.

2003:C5:FF33:C872:F027:A7D4:4368:A739 (talkcontribs)

ImageMagick is installed. The permission for the image folder is 775. My LocalSettings:


$wgEnableUploads = true;

$wgUseImageMagick = true;

$wgImageMagickConvertCommand = "/usr/bin/convert";

$wgImageMagickConvertCommand = "/usr/local/bin/convert";

Bawolff (talkcontribs)

well for starters you have two wgImageMagickConvertCommand. Which one is correct?

109.41.130.38 (talkcontribs)

It's $wgImageMagickConvertCommand = "/usr/local/bin/convert";

Malyacko (talkcontribs)

Have you considered comparing your command with the command in the error message, to find and remove potential differences?

Vincent Eisfeld (talkcontribs)

I have the same problem with Ubunto VPS (MediaWiki 1.35.1 & PHP 7.4.14). "imagick" is active with PHP.

Malyacko (talkcontribs)

@Vincent Eisfeld What is "imagick"? What does "active" mean? Why do you think you have the same problem?

Lutz.bose (talkcontribs)

phpinfo.php reports as Apache Environment PATH: missing path to point to 'convert' - even the system-PATH is correct

To expand PATH with SetEnv in apache's http.conf does not work for me ...

So I made a symlink of the binfile 'convert' to the folder in PATH of the Environment of Apache showed in phpinfo. That works.

--- if anyone knows, how to configure the PATH for using by apache, this would be the better solution

--- why the system-PATH is not the same in Apache Environment, that is the question - this solution would be the best

Reply to "Thumbnail errors: /usr/bin/convert: not found Error code: 127"