Reputation: 1399
I am trying to deploy a rails application on Bluehost using passenger and I have been failing all the time. I installed the passenger gem using:
gem install passenger
And also ran:
passenger-install-apache2-module
And ran all my db migrations and also did a asset precompile
The problem is, I am trying to host it on a sub-domain, so I did the following steps:
PassengerEnabled On
PassengerAppRoot /home/username/rails_apps/my_app
And when I navigate to my domain in the browser it gives me:
Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected]
Where am I going wrong?
Thanks in advance :)
Upvotes: 3
Views: 1557
Reputation: 1304
Check Bluehost on what needs to be in the .htaccess file. Mine looks like this:
<IfModule mod_passenger.c>
Options -MultiViews
PassengerResolveSymlinksInDocumentRoot on
#Set this to whatever environment you'll be running in
RailsEnv production
RackBaseURI /home/rails_apps/my_app
SetEnv GEM_HOME /home/<my_bluehost_username>/ruby/gems
</IfModule>
You should use this command to find your ruby gems location:
gem env
Upvotes: 1
Reputation: 678
I also tried doing the same thing, but was unsuccessful, but when I dig a bit deep I figured out following:
The apache server in Bluehost uses passenger in different path. Hence our installation would not affect it.
Passenger3.x of Bluehost is using ruby 1.8 as default one, hence the ruby version cannot be changed.
Upvotes: 1
Reputation: 1875
Hey have you checked user & group in your httpd conf file? make sure that if you have user/group www-data in httpd conf then your project directories should have same owner & group.
Upvotes: 1