ImageMagick convert available + nginx
Added by Anton Antilopa over 10 years ago
Hello,
I've installed Redmine 2.5 on Debian Wheezy, when I run Redmine with:
ruby script/rails server webrick -e production
everything is running fine, "ImageMagick convert available" is ticked.
When I run it under passenger+nginx, again, almost everything is running fine, but "ImageMagick convert available" has exclamation mark ("RMagick" is still ticked).
I'm running nginx-extras 1:1.6.0-2.4.0.42~wheezy2 amd64 from oss-binaries.phusionpassenger.com repo, passenger passenger 1:4.0.42-1~wheezy1 amd64... Anyone has any idea what could be source of the problem?
lrwxrwxrwx 1 root root 25 May 11 21:26 /usr/bin/convert -> /etc/alternatives/convert
What can I test? Production.log doesn't mention anything about ImageMagick or convert other than "Imagemagick's convert binary (convert) not available".
Replies (1)
RE: ImageMagick convert available + nginx - Added by Anton Antilopa over 10 years ago
The solution:
Nginx removes all environment variables by default. Adding
env PATH;
to the nginx.conf
inherits PATH
env variable and Redmine finds convert
binary without any problems... Anyway, wouldn't it be much more intuitive having the path to convert
in Redmine Administration?