I have installed MiKTeX, GhostScript and ImageMagick on a Windows Moodle 2.1 server with IIS. I have allowed the default user to use cmd.exe and read and execute commands in the folder where MiKTeX is installed. The filter page in Moodle shows that the executables are readable with green checks beside them. But, when I try to use the /filter/tex/texdebug.php page to test it, the TeX/GS image does not show. The command exec output doesn't seem to be running the commands. If I copy the commands from the page into a command line, they run and produce output. I assume that the same kind of output should be visible on th debuging page, but all I get is this:
Checking executables
latex executable (C:\...\miktex\bin\latex.exe) is readable
dvips executable (C:\...\miktex\bin\dvips.exe) is readable
convert executable (C:\...\imagemagick\convert.exe) is readablebase filename for expression is 'dae478d8aae49f8a28c027fb53abca91'
Processing TeX expression:
f(x)=\int_{-\infty}^x~e^{-t^2}dt^2$ C:\....\miktex\bin\latex.exe --interaction=nonstopmode D:\moodle....../temp/latex/dae478d8aae49f8a28c027fb53abca91.tex OUTPUT: RETURN CODE: 1$ C:\...\miktex\bin\dvips.exe -E D:\moodle...../temp/latex/dae478d8aae49f8a28c027fb53abca91.dvi -o D:\moodle....../temp/latex/dae478d8aae49f8a28c027fb53abca91.ps OUTPUT: RETURN CODE: 1$ C:\...\imagemagick\convert.exe -density 240 -trim D:\moodle....../temp/latex/dae478d8aae49f8a28c027fb53abca91.ps D:\moodle....../temp/latex/dae478d8aae49f8a28c027fb53abca91.png OUTPUT: RETURN CODE: 1
It looks to me like it isn't even executing the commands. The only file in the temp\latex directory is the .tex file. PHP is not in safe mode. How can I fix this or at least get more info to diagnose the problem?