Installing Typo

There are two ways to install Typo.

First there is Stable install. Through this process you will download a compressed file and extract it to your web server. This way can be easy for some users, but Stable versions are not always compatible with newer versions of Rails ( Example: 2.6.0 (Stable) is not compatible with Rails 1.1.x )

Second, is through SVN or SubVersion?. During this, you will download, de-package and install rails to a directory of your choice in one single command in your Command Shell. Every Typo version installed through SVN is the Current version. This means that all the latest patches, updates and configurations are included with the Current version. Though through SVN installing is easier and updating is a breeze, Current versions may contain bugs and errors the developers have missed.

Let us get into it!


Installing Stable Version

  • Download the latest Stable version in the DownloadStable section
    • Extract files from the compressed file to a local directory
  • You will need to open up your Mysql database and create a new database for your typo blog
    • If you are a first time installer, and you don't know much about developing, or you just want your blog setup. You will only need one database. But if you know what you are doing and you want to develop and produce a blog at the same time, use the 2-3 database scheme. This will allow you to test, produce and develop for your blog without ruining your progress.
  • There are many ways of creating a database through MySQL, you can use web based GUIs, application based GUIs or even a system terminal.

The easiest way is to use a GUI. For a good operation system GUI use Navicat, though the demo is a 30 day trial, it is cross platform (Windows, Mac OS X, Linux). If you want a web based GUI, try PHPMyAdmin. PHPMyAdmin is an open source SQL editor, it is great for any SQL editing you will need to do.

  • Let’s go! Create a new database. Now that you have done that, you will need to add all the tables that Typo needs.
  • == PHPMyAdmin: ==

Open up your database and click on import.

http://typosphere.org/trac/attachment/wiki/install/phpdb1.PNG?format=raw

http://typosphere.org/trac/attachment/wiki/install/phpdb2.PNG?format=raw

Click browse, and find schema.mysql in /execratedtypodir/db/

http://typosphere.org/trac/attachment/wiki/install/phpdb3.PNG?format=raw

Open it and click Go.

The .sql file will now upload and create all the neccarry tables.

http://typosphere.org/trac/attachment/wiki/install/phpdb4.PNG?format=raw

Insert Navicat tutorial here

  • Upload the extracted file to your server and point the domain to typo/public

Install

Now that the basics are setup, upload the contents of the Typo directory into a directory on your web server.

Make sure your Domain is pointed to /typodirectory/public so that the public can see your blog.

It’s time to make typo communicate to your database. In the /config directory, you will find database.yml or database.yml.example Open one of them with a text editor and you will find:

login: &login
  adapter: mysql
  host: localhost
  username: root
  password: 

development:
  database: typo_dev
  <<: *login

test:
  database: typo_tests
  <<: *login

production:
  database: typo
  <<: *login

Set the adapter to whatever database system you are using. MySQL users are already set.

The host is where your database server is located. If the database is located on the same system as your web server, it should just be localhost. But make sure you know where it is, if it is on some other domain or IP change it to that.

Change the username and password to your login details of you database. It is good to make a user that only has access to the typo database itself, not the whole system. That way, if someone gets into your server, there will be a low chance of them touching your whole system.

Now there are the 3 databases. If you are only using the database one scheme, change the database for development, test and production to the one you created. If you setup 3 databases for your development needs, give the 3 different zones a database each.

Make sure your .yml is all set up correctly, and now save it. If you used database.yml.example rename the file to database.yml .

You will now need to open your command shell, or terminal. cd to the directory you installed typo to and run rake migrate . This is going to migrate typo to your database. It is vital that you do this'''

Typo should now been installed. Go to your domain or setup server address, and a sign-up box. This will only appear once. Input your login details and sign-up. You will then be moved to your admin panel to setup the setting. More via the AdminPanel?.