I am configuring Canvas LMS on an Ubuntu 20.04 VM using the steps provided in the Production Start guide on GitHub. I have followed the instructions and configured everything, but after starting Canvas and Apache2, the page is loading incorrectly (see attached screenshot).
I have attached the Apache error logs and Apache configuration files for your reference
Regards,
Lithin PK
Mob: +91 9995396804
--
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/canvas-lms-users/CAH-r%3DgLrihE6Ox-fKE1OkX68W98jg-KuAsdU6-De6igYvq15xQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/canvas-lms-users/ac819dc6-4ab4-490c-966e-e5c18a78d645n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/canvas-lms-users/31cce1f0-ab85-4eda-a3b5-135a13e2e498n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/canvas-lms-users/b0c6fd2f-1f6d-4d10-b69e-cf8f2fd2d230n%40googlegroups.com.
PORT=3001
NODE_ENV=production
STATSD_HOST=127.0.0.1
STATSD_PORT=8125
STATS_PREFIX=rceapi
CIPHER_PASSWORD=yourkey
ECOSYSTEM_KEY=yourkey
ECOSYSTEM_SECRET=yourkey
FLICKR_API_KEY=yourkey
YOUTUBE_API_KEY=yourkey
2. apache: add new listen address & new virtualhost config that points passenger to canvas-rce-api - append to bottom of file
apache2/sites-enabled/canvas-ssl.conf
Listen 3001
<VirtualHost *:3001>
ServerName canvas.yourdomain.com
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/canvas.yourdomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/canvas.yourdomain.com/privkey.pem
PassengerAppRoot /var/canvas-rce-api
PassengerAppType node
PassengerStartupFile app.js
</VirtualHost>
3. edit apache module passenger.conf to hardcode location of node binary - just add the single line under PassengerDefaultRuby
use `which node` to find your node path, it may be different than mine
apache2/mods-enabled/passenger.conf
PassengerNodejs /home/canvas/.nvm/versions/node/v18.17.1/bin/node
4. edit config/dynamic_settings.yml and change rich-content-service / app-host to canvas.yourdomain.com:3001
5. restart canvas_init and apache2
sudo systemctl restart canvas_init & sudo systemctl restart apache2