Skip to main content

Posts

How to deploy Open-edX services in Distributed Architecture

Hi , I think the first thing you need to do is to move the data to a dedicated database server so that you can set up a farm of edx servers that share the same content. Here are the steps I did to achieve that: Step 1 : Installed openedx instance say 'Instance-1' which is your running Web node( Web-server ) Step 2 : Execute the following commands to back up the database on 'Instance-1' mongodump -o ./mongo-backup mongorestore -drop ./mongo-backup mysqldump -u root -p --all-databases > ./backup.sql mysql -u root -p < ./backup.sql Step 3 : Setup an instance of mysql on AWS-RD  with URL like: ' http://instance1.123456789012.us-east-1.rds.amazonaws.com/ '(If want to you mongodb & mysqlDB on same instance. that is going to work as well.) Step 4 : Import the Mysql databse data into AWS-RD from Open-edX backup using command: 'mysql -h <endpoint> -u <username> -p < ./backup.sql' Step 5 : Setup a new Ub...

How to add Custom Static Page in Open-edX

Step's to add Custom Static Page to Open-edX Learn how to add a custom static web page to your Open edX installation. This simple step-by-step how-to guide explains how to register the page with the Django router and where to store it on your Ubuntu server so that Nginx will serve it from the root of your site. Summary The architects of Open edX software made it easy for you to add static content to your site; that is, once you’ve seen a working example. Actually, technically, you can add any static digital content that you intend to access via a static URL. For example, you can add any of the following using this simple procedure: a static web page that includes your site’s theme styling and includes the site’s header and footer. a replacement Favicon ico file a human.txt file a google site verification html file a sitemap.xml In this tutorial we’ll add a  Google Site Verification  html page to our site. This seems to be on...

How to Setup google analytics on Open-edX

Setup Google Analytics on Open edX Get Google Analytics working on your Open edX platform with this simple step-by-step how-to guide. Covers Google site verification, Javascript snippet installation, Open edX code modifications. Summary In this article we’ll add Google Analytics’ Javascript code snippet to every page on our Open edX site. To accomplish this we’ll need to modify the main Django/Mako template for the site, which is located in /edx/app/edxapp/edx-platform/lms/templates/main.html and can be overridden by your own template of the same name in your custom theme. Here are the steps: Verify Your Site With Google Modify the main.html Mako template Restart the server Verify Your Results If you’re just getting started then you can read more here:  Set up Google Analytics tracking with gtag.js . Take note that you’ll find parameters in lms.env.json for Google Analytics,  HOWEVER , as of the current Ginkgo.2 release the...

Open edX Step-By-Step Production Installation Guide

Get your first Open edX platform up and running with this detailed step-by-step how-to guide that provides detailed instructions on how to build your AWS EC2 Ubuntu Linux server, execute the Open edX native build scripts, and configure your new platform. The first time I installed an instance of Open edX, in many ways I felt like I was on the outside looking in. The project documentation that exists is very good, but, it assumes an extensive knowledge base that, at the time, I lacked. This article attempts to fill in some of the gaps in that knowledge base, and hopefully, make the Open edX platform more accessible. Note: this article references Bash scripts that are located in this Github repository: https://github.com/lpm0073/edx.ginkgo This is a step-by-step fully automated script to stand up a single-server full-stack production-ready instance of Open edX running on an Amazon Web Services (AWS) EC2 (Elastic Compute Cloud — aka virtual server) R3.Large instance (aka 2-cpu ser...