for some scope, I've recently installed Canvas (prod) on Ubuntu 14.04 with postgresql 9.3, bundler 1.7.11, apache 2.4, redis 2.6, and phusion passenger 5.0.16
1) In the database population step an example is given on how to fill the database with inital data. It is also mentioned that there is a way to pre-fill data by defining variables. Could someone provide an example of what my command line would look line with the Database population and defined environment variables?
2) under the "Making sure to use the "most restrictive" permissions, there is a comment:
"Note that it is probably wise to ensure that the ownership settings of all other files besides the ones with permissions set just above are restrictive, and only allow your canvasuser user account to read the rest of the files"
What exactly does this mean?
Exactly what is the scope of "other files"?
To me, that means that I should have done something like:
~/var$ sudo chown -R canvasuser ./canvas/
~/var$ sudo chmod -R 400 ./canvas/
However, I know doing this would make canvas fail in a fantastic fashion. It would not be able to write uploaded files to /var/canvas/tmp/files/0000/...., nor would it be able to execute anything so jobs probably wouldn't work.
3) In the apache configuration, the instructions state to modify the (2) instances of SetEnv and (2) Directory. I've never done this, but i've only ever setup a single server for canvas that runs everything (web/db/jobs)
What other options are there for the SetEnv and Directory compared to the default suggestions?
4) In the Redis section, why do the instructions have "sudo apt-get install redis-server" twice? I think this is probably an oversight.
There is also an example to change directory:
sysadmin@appserver:/var/canvas$ cd /var/canvas/
however, since the user is already in /var/canvas/ this would result in the user getting a message about the directory not existing (hopefully!) as it would put them in this non-existent location: