The version of my moodle-site is Moodle 3.5 (Build: 20180517).

I have TeXLive installed on server, but TeX filter doesn't work. Here is TeX Filter Debugger report:

**3.**/site/public_html/filter/tex/mimetex.linux: 1: /site/public_html/filter/tex/mimetex.linux: Syntax error: word unexpected (expecting ")")

**4.**nothing (blank box)

**5.**latex executable (/site/public_html/latex/bin/x86_64-linux/latex) is readable

dvips executable (/site/public_html/latex/bin/x86_64-linux/dvips) is readable

**Error:**convert executable () is not readable

dvisvgm executable (/site/public_html/latex/bin/x86_64-linux/dvisvgm) is readable

base filename for expression is '9608176195573c30c6beb3cf078fdf66'

Processing TeX expression: f(x)=\int_{-\infty}^x~e^{-t^2}dt

$ '/site/public_html/latex/bin/x86_64-linux/latex' --interaction=nonstopmode --halt-on-error /site/moodledata/temp/latex/9608176195573c30c6beb3cf078fdf66.tex OUTPUT: This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex) restricted \write18 enabled. entering extended mode (/site/moodledata/temp/latex/9608176195573c30c6beb3cf 078fdf66.tex LaTeX2e <2018-04-01> patch level 5 (/site/public_html/latex/texmf-dist/tex/latex/base/ar ticle.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/site/public_html/latex/texmf-dist/tex/latex/base/si ze12.clo)) (/site/public_html/latex/texmf-dist/tex/latex/base/in putenc.sty (/site/public_html/latex/texmf-dist/tex/latex/base/la tin1.def)) (/site/public_html/latex/texmf-dist/tex/latex/amsmath /amsmath.sty For additional information on amsmath, use the `?' option. (/site/public_html/latex/texmf-dist/tex/latex/amsmath /amstext.sty (/site/public_html/latex/texmf-dist/tex/latex/amsmath /amsgen.sty)) (/site/public_html/latex/texmf-dist/tex/latex/amsmath /amsbsy.sty) (/site/public_html/latex/texmf-dist/tex/latex/amsmath /amsopn.sty)) (/site/public_html/latex/texmf-dist/tex/latex/amsfont s/amsfonts.sty) (/site/public_html/latex/texmf-dist/tex/latex/amsfont s/amssymb.sty) (/site/public_html/latex/texmf-dist/tex/latex/base/la texsym.sty) (./9608176195573c30c6beb3cf078fdf66.aux) (/site/public_html/latex/texmf-dist/tex/latex/amsfont s/umsa.fd) (/site/public_html/latex/texmf-dist/tex/latex/amsfont s/umsb.fd) (/site/public_html/latex/texmf-dist/tex/latex/base/ul asy.fd) [1] (./9608176195573c30c6beb3cf078fdf66.aux) ) Output written on 9608176195573c30c6beb3cf078fdf66.dvi (1 page, 496 bytes). Transcript written on 9608176195573c30c6beb3cf078fdf66.log. RETURN CODE: 0

$ '/site/public_html/latex/bin/x86_64-linux/dvips' -E /site/moodledata/temp/latex/9608176195573c30c6beb3cf078fdf66.dvi -o /site/moodledata/temp/latex/9608176195573c30c6beb3cf078fdf66.ps OUTPUT: RETURN CODE: 0

$ '/site/public_html/latex/bin/x86_64-linux/dvisvgm' -E /site/moodledata/temp/latex/9608176195573c30c6beb3cf078fdf66.ps -o /site/moodledata/temp/latex/9608176195573c30c6beb3cf078fdf66.svg OUTPUT: RETURN CODE: 0

Another information: .tex and .ps files in temp/latex folder contains what they should contain, but .svg file is white and empty.

And when I try to do the last command from a command line I get next information:

processing file /site/moodledata/temp/latex/9608176195573c30c6beb3cf078fdf66.ps

WARNING: file '/site/moodledata/temp/latex/96081761955 73c30c6beb3cf078fdf66.ps' not found in special 'psfile' graphic size: 100.375pt x 18.0675pt (35.277778mm x 6.35mm) output written to ../../moodledata/temp/latex/9608176195573c30c6beb3cf078fdf66.svgfile converted in 0.195008 seconds