Installing Mephisto on Bluehost
05 September, 2006 - 6 commentsIt's not a completely trivial installation, so here's what I did:
- Login to your account (you need to have ssh access)
- Install Subversion on your machine http://www.bluehostforum.com/archive/index.php/t-134.html
- Create a database for mephisto
Install Mephisto:
cd mkdir rails cd rails mkdir mephisto svn co http://svn.techno-weenie.net/projects/mephisto/trunk mephisto cd mephisto/vendor wget http://rubyforge.org/frs/download.php/12582/tzinfo-0.3.1.tar.gz tar xzvf tzinfo-0.3.1.tar.gz rm tzinfo-0.3.1.tar.gz cd ../.. rake rails:freeze:edgeUpdate your config/database.yml
In config/environment.rb uncomment:
ENV['RAILS_ENV'] ||= 'production'Back in the terminal, setup the database:
cd ~/rails/mephisto rake RAILS_ENV=production db:bootstrapCreate a symbolic link to your rails mephisto install
cd ~/public_html ln -s /home/YOUR_USERNAME/rails/mephisto/public mephistoCreate a subdomain 'mephisto' with cPanel
- That's it! Your blog should be accessible from http://mephisto.yourdomain.com
- Go to http://mephisto.yourdomain.com/admin and login with admin/test to start your weblog.
Feel free to replace the name mephisto for the name you want to give to your weblog.
If the link to tzinfo is no longer correct, go to http://rubyforge.org/projects/tzinfo/ and get the correct one.
Good luck with your installation, and let me know about any problems, or just post a link of your new blog!
Comments:
Mat
Posted on 08 September, 2006 at 06:06
Hey, thanks a lot for this guide, i've been trying to get Mephisto running on my Bluehost account for a couple weeks already. I've had success on my local server (both webrick and lighttpd) getting Mephisto up and running. But no luck with Bluehost so far. I'm still experienceing problems though, instead of installing Subversion on my hosting i've just done it on my machine and done all of the necassary changes and procedures like it was on my server. I uploaded it and rake'd the database in production mode. All of the tables and log directorys were succesfully created, but Mephisto is still throwing the "Rails Application Failed to Start Properly" error. I'm not a complete Rails/Ruby novice, the only thing that has stumped me was getting my applications running in a live enviroment. It's not giving me much information about the error either, nothing in the log. Could it be a file access problem? I'm not sure, I wish I could provide more information about it. Thanks if you can help me at all.
Miguel
Posted on 08 September, 2006 at 09:09
A possible issue is the lack of executable flags on your dispatch files when you use ftp. Try fixing their permissions: chmod 755 ~/rails/yourapp/public/dispatch.*
Good luck!
Mat
Posted on 09 September, 2006 at 03:06
Thanks Miguel. Actually the CHMOD permissions were fine, the one thing that was wrong was the shebang on the .htaccess file, the default was #!/opt/usr/local/bin/ruby and Bluehost actually uses #!/usr/bin/ruby. All fixed now, thanks a lot for this guide and your help, i'll be sure to link to this article. http://blog.matharvard.com/
Sara
Posted on 09 September, 2006 at 23:18
Thanks for the guide, but for some reason I am having tons of problems with rake it just aborts. When I type rake rails:freeze:edge I get the following error rake aborted! No Rakefile found (looking for rakefile, Rakefile, rakefile.rb, Rakefile.rb /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in 'load_rakefile' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1900:in 'run' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/bin.rake:7 /usr/bin/rake:18
I don;t know why I can't find a rakefile
Miguel
Posted on 11 September, 2006 at 09:32
Sara: Try running rake while in the root directory of your rails application. Hope it does the trick.
Sara
Posted on 11 September, 2006 at 20:50
so I figure that I poriobably had to dot aht but now I get another erros message rake aborted uninitialized constatn ActionView: :Helper: :JAvaScriptHelper::PrototypeHelper I tihnk thatI can do it by hand by copying the contents of the /mephisto/db/schema by hand using phpMYADmin.
Thansk for your help thoug