Using the following guide
http://spontaneousderivation.com/2012/09/30/rails-3-2-on-a-shared-dreamhost-server/
I managed to get the Rails 3.2.8 application with Ruby 1.9.3 and run it on Dreamhost hosting using fcgi (I know that this is not the best solution, but I do not want to downgrade my applications to 3.0 and I do not have enough skills and money for VPS) .
Following the DH wiki guides:
http://wiki.dreamhost.com/RMagick
http://wiki.dreamhost.com/Image_Magick#Compiling_ImageMagick_on_your_DreamHost_account
I installed my own version of ImageMagic and RMagic as a local gem.
However, when I try to start the application using the RMagic function, I get the following error in error.log:
'Premature end of script headers: dispatch.fcgi'.
I found out that this happens when I uncomment the following line in my bootloader:
include CarrierWave::RMagick
Running dispatch.fcgi from the shell does not report any errors.
I suppose the problem might be caused by LD_LIBRARY_PATH or other env variables (listed in the DH wiki), but tried to include them in my .bashrc , .bash_profile and dispatch.fcgi , but without effect.
source share