How to get Phusion Passenger and ImageMagick to work together?
For Studio Gallery, I want people to have the ability to upload avatars for the clients that they create. I am using the Paperclip plug-in for this and when running the app via script/server this works great. I installed ImageMagick and Paperclip is able to find it since all the right paths are set in my .bash_profile file.
The problem is that I can’t get Paperclip or ImageMagick to work when running the app via Passenger. I have added the following lines to my /etc/profile file:
#ImageMagick export MAGICK_HOME="/usr/local/ImageMagick-6.4.1" export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib" export PATH=$MAGICK_HOME/bin:/usr/bin:$PATH
But so far, it seems that Apache or Passenger is unable to find ImageMagick. Anyone have any ideas?