ILIAS-Tricks not only for Schools
Install Mathjax, Stack and Maxima in 10 minutes
[wolfganghuebsch] - 18. Aug 2018, 19:03
- Because it is done so quick, have a try with installing Maxima, Mathjax and the Stack plugin for ILIAS on your server
- This should work for most Debian and Ubuntu systems
- Done in 10 minutes
- You need a vserver or better with at least 2 cores, better 4
- Maxima will only cause processor load if a user starts a test, so if you have no tests online, maxima should not make any problems
- At the buttom you find a hint how to get a much quicker maxima server
Example of a Stack question in ILIAS: |
Install Maxima
- Login via SSH on your server
apt-get update
apt-get upgrade
apt-get install maxima
- Get version:
maxima –version
Install Mathjax
- There are two different ways to use mathjax in ILIAS:
- Activate Mathjax in the browser (recomended)
- Activate Mathjax in the server (too many pitfalls in my eyes)
- So let`s do the browser scenario:
cd ilias/Customizing
git clone https://github.com/mathjax/MathJax.git MathJax
- More infos here: http://docs.mathjax.org/en/latest/installation.html
- Login to
ILIAS->Administration->Third party software->mathjax
- Put the following link in the first field and activate it, change the domainname according to your site:
./Customizing/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML
- Deactivate the second server based option also
- It should now look like this:
Install the Stack plugin
- Change to your ILIAS webdirectory:
cd ilias
mkdir -p Customizing/global/plugins/Modules/TestQuestionPool/Questions
cd Customizing/global/plugins/Modules/TestQuestionPool/Questions
git clone https://github.com/ilifau/assStackQuestion.git
cd assStackQuestion
- If ILIAS 5.3 is your current version:
git checkout master-ilias53
- If ILIAS 5.4 is your current version:
git checkout master-ilias54
Configure the plugin
- Go to Adminstration->Plugins and upgrade the database
- Set the maxima version
- Refresh plugin language
- Activate the plugin
Other things to do in ILIAS
- Go to the repository and add a question-pool. There should be a new type available: stack-question
- Import some pools. You can find a lot in the SIG Mathe+ILIAS for free. Or use this pool with 50 algebra questions:
Troubleshooting
- In my case, I could not see the graphs. I found out that there is a rightsetting problem in ilias/data/stackschule/xqcas/:
- For some reason, the folder xqcas has not enouth rights. I changed this with
chmod -R 775 xqcas
, but I am not shure, if the problem will come back.