Passenger + nginx + Redmine + ImageMagick

350 views
Skip to first unread message

Dreamy

unread,
May 11, 2014, 4:16:33 PM5/11/14
to phusion-...@googlegroups.com
Hello,

I've installed Redmine 2.5.1 on Debian Wheezy, using nginx-extras 1:1.6.0-2.4.0.42~wheezy2 amd64 and passenger 1:4.0.42-1~wheezy1 amd64 from oss-binaries.phusionpassenger.com repo.
When I start Redmine using webrick server, or under lighttpd+fastcgi, everything is running smoothly, when I run it under nginx, I get "Imagemagick's convert binary (convert) not available" messages
in production.log and also an exclamation mark near "ImageMagick convert available" on admin/info page.

Can anyone give me a hint? What should I test, how can I fix it? With passenger, redmine is runnig under user "redmine", uid 1000. When I su as this user, I can execute "convert" binary without any issues.

Hongli Lai

unread,
May 12, 2014, 3:57:06 AM5/12/14
to phusion-passenger
It's because ImageMagick is not in your PATH environment variable.
Read http://www.modrails.com/documentation/Users%20guide%20Apache.html#about_environment_variables
for an extensive explanation.
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/phusion-passenger/63b84c56-b3b0-45b3-9b3d-65d54bc31c4e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Phusion | Web Application deployment, scaling, and monitoring solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Dreamy

unread,
May 12, 2014, 12:08:57 PM5/12/14
to phusion-...@googlegroups.com, hon...@phusion.nl
You were absolutely right, 100x thank you! I've added simple env PATH; to the nginx.conf and it works just fine. Didn't know that nginx removes all environment variables by default.
Reply all
Reply to author
Forward
0 new messages