Установил imagemagick, подходящую сборку к моей системе, в phpinfo отображается, но при попытки выполнения:
$im = new Imagick($file_path);
ловлю 502 Bad Gateway.
Лог в nginx:
2018/01/17 02:45:48 [error] 112140#111572: *7 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: test.local, request: "GET /testimagick.php HTTP/1.1", upstream: "
127.0.0.1:8080/testimagick.php", host: "test.local"