ILIAS-7-Install-Tutorial for Ubuntu 20.04
Mathjax
Activate Mathjax in Browser
cd /var/www/html/ilias/Customizing
git clone https://github.com/mathjax/MathJax.git MathJaxÂ
cd MathJax
git remote show origin
- ILIAS 6 & 7:
git checkout v2.6-latest
- ILIAS->Administration->Third Party Software
- Mathjax
- Check: Activate MJ in Browser
- URL to MJ: ./Customizing/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML
- Check: Activate MJ in Browser
- Mathjax

Install Mathjax server
- The following is deprecated. Please use the the Installation guide linkt in the Administration menu ilias/Services/MathJax/docs/Install-MathJax-Server.txt
I recommend to run an own mathjax server if you plan to use this service, because this will be the quickest way to run mathjax. The first step is to install node, but be already installed it in the chatserver section above. So we just need to install some npm packages and create a start script.
I got some rendering issues that happend with the server version, anyway. For normal rendering, use the browser rendering above.
Node versions < 5 will not work with mathjax. Please update to 6.9.5 or similar like described in the chat section above.
mkdir /opt/mathjax
cd /opt/mathjax
npm install https://github.com/mathjax/MathJax-node/tarball/master
npm install mathjax-server
cd /opt/mathjax
nano mathjax.js
- Put these lines in:
1 | var server = require('./node_modules/mathjax-server/index.js'); |
- Start the server manually:
node mathjax.js
- if there is something wrong, you will get: worker 4216 died. If all is fine, you will get: Server listening on port 8003. If this do not work, find out the path of node withwhereis node
and try the start like this:/usr/local/bin/node mathjax.js
- Stop the server with
STRC+C
- Now we create the start script:
nano /etc/init.d/ilmathjax
- Copy the following in:
1 | #!/bin/bash |
- Check if the node path in line 5 is correct:
whereis node
- Make the scripts executable:
chmod +x /etc/init.d/ilmathjax
update-rc.d ilmathjax defaults 93
- Update crontab:
nano /etc/crontab
- Put the following lines in before the last #:
1 | #Mathjax |
That means, the script checks every 5 minutes if the mathjax server is running. Replace mathjax with root if the script does not run and check the rightsetting.
- Activate Mathjax in ILIAS-Administration->Third party software->mathjax:
