Installing A Typo Blog
From A2Wiki
How to Install Typo at A2hosting
Make sure the latest version of the Typo gem is installed on your server. To do this, log into shell and issue:
gem list
If it is not there or shows a version of typo older than version 5, please submit a ticket to our support department to install latest version of typo.
Creating a Typo instance:
- In shell, issue the commands:
cd ~ typo install typo_dir
Where 'typo_dir' is the directory you want typo to reside in.
- Create a link so the webserver can find typo:
cd ~/www ln -s ../typo_dir/public ./typo_blog_name
- Typo needs a .htaccess file to work properly:
cd ~/www/typo_blog_name vi .htaccess
- Insert the following:
# General Apache options
AddHandler cgi-script .cgi
Options FollowSymLinks ExecCGI
# Redirect all requests not available on the filesystem to Rails
RewriteEngine On
# Uncomment this if you're not running Typo in the root of your
# webserver's URL space (i.e. http://www.example.com/blog):
#
# RewriteBase /blog/
# try to suggest current rss subscribers that the url moved permently
RewriteRule ^xml/([a-z] )$ /xml/$1/feed.xml [R=301]
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.] )$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
# In case Rails experiences terminal errors
ErrorDocument 500 "<h2>Application Error</h2>Typo could not be reached"
- Save by typing a ":" and wq then enter
- Alternately, you can upload an .htacess file into this dir from your ftp/sftp client or cpanel.
- Typo will create a process automatically, that we will need to kill:
ps aux | grep typo | grep Your_Username | tr -s " " | cut -d" " -f2
- Kill the resulting number:
kill (number)
- Now you can go to:
yoursitename.tld/typo_blog_name
And your blog setup screen should appear!
* Note: Typo performance may be slow because Rails applications are run via CGI by default. If you'd like to speed up Typo performance, submit a ticket at http://suppport.a2hosting.com and request Mongrel acceleration for your Typo blog.
Application Error
Typo could not be reached"</pre>
- Save by typing a ":" and wq then enter
- Alternately, you can upload an .htacess file into this dir from your ftp/sftp client or cpanel.
- Typo will create a process automatically, that we will need to kill:
ps aux | grep typo | grep Your_Username | tr -s " " | cut -d" " -f2
- Kill the resulting number:
kill (number)
- Now you can go to:
yoursitename.tld/typo_blog_name
And your blog setup screen should appear!
====
I have had great success installing a Typo Blog by following the instructions listed here:
http://www.typosphere.org/wiki/typo/Install_typo_from_sources
I created the database within my cPanel, uploaded the latest version of Typo, edited the database.yml file to include the database information I had setup, (added the rewrite for the Rails Application) and restarted the application.
