Canvas LMS/Installation
From r00tedvw.com wiki
(Difference between revisions)
(→Configuration) |
(→Database Population) |
||
Line 130: | Line 130: | ||
==Database Population== | ==Database Population== | ||
+ | Make sure you can connect to github | ||
+ | ~/var/canvas$ RAILS_ENV=production bundle exec rake db:initial_setup |
Revision as of 13:07, 21 January 2014
Canvas - Learning Management Solution. Used by universities and schools.
Contents |
Requirements
In the simplest configuration, everything will be running off a single server.
- Recommended Hardware specifications
- Dual Core+ 3.0ghz+ or Dual processors
- 4GB+ RAM
- 60GB HDD
- 64-bit capable system
Software Requirments
Minium, Ubuntu 10.04 LTS+ server edition. Desktop will require more hardware than listed above.
Preferably Ubuntu 12.04 LTS
Download Database software
Postgres (Database)
~$ sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y autoremove ~$ sudo apt-get -y install postgresql-9.1
Configure Database
~$ sudo -u postgres createuser canvas -D -S -R -P ~$ sudo -u postgres createdb canvas_production --owner=canvas ~$ sudo -u postgres createdb canvas_queue_production --owner=canvas
Download Git & Canvas
~$ sudo apt-get -y install git-core ~$ cd /var ~$ sudo git clone https://github.com/instructure/canvas-lms.git canvas ~$ cd canvas ~/var/canvas$ sudo git branch --set-upstream stable origin/stable ~/var/canvas$ sudo chown -R helpdesk /var/canvas --- helpdesk just happens to be the name of this user. use your own
Download Ruby 1.9.3
You're going to have to add a repository because the version available through Ubuntu's US or Main repos is not up to date (at the time of this writing.
~/var/canvas$ sudo apt-get -y install python-software-properties ~/var/canvas$ sudo apt-add-repository ppa:brightbox/ruby-ng ~/var/canvas$ sudo apt-get update ~/var/canvas$ sudo apt-get -y install ruby1.9.3 zlib1g-dev libxml2-dev libmysqlclient-dev libxslt1-dev imagemagick libpq-dev nodejs libxmlsec1-dev libcurl4-gnutls-dev libxmlsec1 build-essential openjdk-7-jre
Download Ruby Gems
If you are behind a firewall, you're going to need to open up the following routes to complete this sections' installation instructions:
- 192.30.252.128:9418
- 192.30.252.129:9418
- 192.30.252.130:9418
- 192.30.252.131:9418
~/var/canvas$ sudo gem install bundler --version 1.3.5 ~/var/canvas$ bundle install --path vendor/bundle --without=sqlite
Download default config files from Amazon instance
~/var/canvas$ for config in amazon_s3 database \ delayed_jobs domain file_store outgoing_mail security external_migration do cp config/$config.yml.example config/$config.yml; done
Configuration
database.yml
~/var/canvas$ cp config/database.yml.example /config/database.yml ~/var/canvas$ vi config/database.yml
Under Production
- edit the database name (if different from default)default=canvas_production & canvas_queue_production
- host (if different from default) default=localhost
- username for database user (if different from default) default=canvas
- password for database user
- In my instance, nothing was changed except the password.
production: adapter: postgresql encoding: utf8 database: canvas_production host: localhost username: canvas password: password timeout: 5000 queue: adapter: postgresql encoding: utf8 database: canvas_queue_production host: localhost username: canvas password: password timeout: 5000
outgoing_mail.yml
~/var/canvas$ cp config/outgoing_mail.yml.example config/outgoing_mail.yml ~/var/canvas$ vi config/outgoing_mail.yml
Under Production
- Edit the address, this should be your email relay or SMTP server
- Edit the port (if different from default) default=25
- Edit the username for your relay/smtp
- Edit the password for your relay/smtp
- Edit the domain (if different from default) default=example.com
- Edit the outgoing address (if different from default) [email protected]
- In my instance, I only changed the address, username, password, domain, and outgoing_address
production: address: "smtp.example.com" port: "25" user_name: "user" password: "password" authentication: "plain" # plain, login, or cram_md5 domain: "example.com" outgoing_address: "[email protected]" default_name: "Instructure Canvas"
domain.yml
~/var/canvas$ cp config/domain.yml.example config/domain.yml ~/var/canvas$ vi config/domain.yml
Under Production
- Edit the domain
- Uncomment the files domain and add your domain
- In my instance, I only changed the domain and uncommented the files domain
production: domain: "canvas.example.com" # whether this instance of canvas is served over ssl (https) or not # defaults to true for production, false for test/development ssl: true files_domain: "canvasfiles.example.com"
security.yml
~/var/canvas$ cp config/security.yml.example config/security.yml ~/var/cavnas$ vi config/security.yml
Under Production
- Edit the encryption Key to a minimum of 20 characters. This can be random.
- In my instance, I only changed the encryption key by pressing alot of buttons
production: # replace this with a random string of at least 20 characters encryption_key: hu9ehd92hdh2798ehdrd2hd37824 ---(no this is not really my encryption key)
Database Population
Make sure you can connect to github
~/var/canvas$ RAILS_ENV=production bundle exec rake db:initial_setup