10 Apr 2013

canvas-lms Production-setup

11:33 AM MongoDB, Ubuntu/linux 0 Comment

LMS configure and install in ubuntu with Passenger Rails

1. Install Require Packages

2. Install RVM System Wide

3.Logout of the server and log back in

4. Install Ruby 1.8.7

5. Set the default Ruby version to 1.8.7

6. Switch to the default Ruby version 1.8.7

7.Download Canvas code

8.Install nginx with Passenger rails

9. Install nginx with passenger rails integrated
passenger-install-nginx-module –prefix=/etc/nginx –auto

Note:- Choose auto download and configure Nginx option and continue

useradd nginx
chown nginx /etc/nginx/ -R

10. Configure Nginx

The passenger-install-nginx-module command above creates an nginx.conf file in /opt/nginx/conf/nginx.conf with directives to enable Phusion Passenger. We will replace this with our own nginx.conf file and configuration structure

Create a new /etc/nginx/conf/nginx.conf file with the following contents:
Replace the passenger version in the below with the installed version. In this case it is passenger-3.0.0.19

create nginx init file to start and stop the services

11. Create database in mysql

12. Canvas default configurations

13. Configure Database details

14. Configure Outgoing email

15. URL configuration for canvas

16. Populate the Database
we need to populate the database with tables and initial data

17. Generate the canvas files

18. create directories and change the file permissions

19. Automated Jobs
Canvas has some automated jobs that need to run at occasional intervals, such as email reports, statistics gathering, and a few other things. Canvas installation will not function properly without support for automated jobs.

20. Start the server

Leave a Reply