Skip to content

alikhil/open-edx-configuring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 

Repository files navigation

Open Edx Configuring

Here, I am sharing my experience, ways of solving some problems faced in open edx.

I am using Open edx Eucalyptus.2 on Ubuntu 12.04, but my things that I describe below may be usefull for other versions/configurations.

Also usefull links:

Overview

First steps to do after installation Open edx

  • Change name of platform
  • Change organization logo
  • Change urls like localhost:8000 to my-open-edx.com

Configuring SMTP server for sending mails

Look here.

Also don't forget to change sender mails.

Control course creation rights

Look here.

Solving problems with downloading .CSV reports

I have already described solution here.

Creating superuser

cd /edx/app/edxapp/edx-platform
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws create_user -s -p edx -e [email protected]
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws changepassword user
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws shell


from django.contrib.auth.models import User
me = User.objects.get(username="user")
me.is_superuser = True
me.is_staff = True
me.save()

Look source here.

Backuping server and restoring it on another machine

Idea is the same as in BluePlanetLife/openedx-server-prep.

On first machine, where server is running now:

mkdir backup

# backing up mysql db
mysqldump edxapp -u root --single-transaction > backup/backup.sql
cd backup

# backing up mongo db
mongodump --db edxapp
mongodump --db cs_comments_service_development
cd ..

# Packing it to single file for easy copying to second sever
tar -zcvf backup.tar.gz backup/

Now, copy backup.tar.gz to second server. For example using scp:

scp backup.tar.gz root@second-server-ip:~/backup.tar.gz

And then restore backup on second machine:

# unpacking
tar -zxvf backup.tar.gz
cd backup

# restoring mysql
mysql -u root edxapp < backup.sql

# cleaning up mongo db and restoring
mongo edxapp --eval "db.dropDatabase()"
mongorestore dump/

That's all!

Settings

They stores in /edx/app/edxapp/ directory.

Updating changes related with assets

# CMS:
/edx/bin/edxapp-update-assets-cms
# LMS:
/edx/bin/edxapp-update-assets-lms

Restarting system

# CMS:
sudo /edx/bin/supervisorctl restart edxapp:
# LMS:
sudo /edx/bin/supervisorctl restart edxapp_worker:

Open edx Insights

Look here.

Deleting user account

If you have problem with deleting users through Django admin, try solution below or see topic in google groups.

cd  /edx/app/edxapp/edx-platform
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws shell
>>> from django.contrib.auth.models import User
>>> u=User.objects.get(email="[email protected]"); [obj.delete() for obj in u.preferences.all()]; u.delete()
[None]

Configuring External Grader

See also

Quick start

About

Here, I am sharing my experience, ways of solving some problems faced in open edx.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published