installing typo 4 on dreamhost
I struggled with this for awhile, abandoning it midway through, but I finally got it to work. Most of the instructions for installing typo 4.0.1 on dreamhost by Aiden Bordner worked for me, except you need to edit db/migrate/051_fix_canonical_server_url.rb
as described by Chris H.
To summarize:
- Download Typo using Subversion:
svn checkout svn://typosphere.org/typo/trunk typo
- Setup a new host and set the directory to
/home/username/typo/public
and enable FastCGI support. - Setup a mySQL server.
-
Create
config/database.yml
:
` login: &login adapter: mysql host: mySQL server hostname username: mySQL server username password: mySQL server passworddevelopment: database: typo_db «: *login
test: database: typo_db «: *login
production: database: typo_db «: *login `
- Edit
config/environment.rb
and uncomment the line that saysENV[‘RAILS_ENV’] = ‘production’
- Edit
db/migrate/051_fix_canonical_server_url.rb
and comment out or delete the lineb.settings['canonical_server_url'] = b.settings['canonical_server_url'].gsub(%r{/$},'')
- Setup your database by running
rake migrate RAILS_ENV=production
. Note that this step will fail if you don’t editdb/migrate/051_fix_canonical_server_url.rb
- Edit
public/dispatch.fcgi
and insert the following code before the line that readsRailsFCGIHandler.process!
` class RailsFCGIHandler private def frao_handler(signal) dispatcher_log :info, “asked to terminate immediately” dispatcher_log :info, “frao handler working its magic!” restart_handler(signal) end alias_method :exit_now_handler, :frao_handler end ` - Make sure that both
public/dispatch.rb
andpublic/dispatch.fcgi
are executable.
Typo can sometimes be excruciatingly slow to load up, you may have to reload the page a couple of times.