Typo 2.6.0

From DreamHost
Jump to: navigation, search

Typo is the most popular blogging software written in Ruby on Rails. It is developed by Leetsoft. The current version is 4.0, you can find installation instructions at Typo.


Warning: Typo 2.6.0 (the current version) doesn't work correctly with Rails 1.1 (you might be able to get it working if you apply this patch)

Download the latest stable release from Typo Sphere, and upload it into the directory that you've enabled through the Dreamhost panel. (When registering the domain for typo, be sure to point it to the "public" folder inside of the directory where you've uploaded Typo.)

Basically, all the advice for installing Typo is the same as for any other Ruby on Rails application. See more at Ruby on Rails. Specifically, I noticed a significant performance increase by following the advice to remove ActiveRecord sessions from (TYPO_DIR)config/environment.rb

If you have an SSH client, you can log in to your account and use
nano -w (TYPODIR)/config/environment.rb
to comment out the line
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:database_manager => CGI::Session::ActiveRecordStore)
with a '#'

You should also change your .htaccess within your /typo/public directory. This will allow the statistics package of your DH domain to be exposed.

AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/failed_auth.html$ [OR]
RewriteCond %{REQUEST_URI} ^/stats/(.*)$
RewriteRule .*$ - [L]
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

# In case Typo experiences terminal errors
# Instead of displaying this message you can supply a file here which will be rendered instead
# Example:
#   ErrorDocument 500 /500.html

ErrorDocument 500 "<h2>Application error</h2>Typo failed to start properly"

On top of this, there's some advice at Typo's project site specifically towards installing Typo at Dreamhost.


Problems with "Application Could not be Reached?" try the advice at alexyoung.org.

The fastest and easiest way to get advice on running or installing (or modifying) Typo is to log onto the freenode.net irc server (irc://irc.freenode.net) and join the #typo channel. People sit there all day talking, and many of them would be willing to help you troubleshoot your problems.


Dreamhost hosted sites using typo