This might not be what is needed ... a guess ...
Don't have a 2.0 (very old) to test this but the code is there in moodlecode/filter/tex/texdebug.php
Is the filter for LaTex turned on? Is it configured?
There is an option in configuration to use Moodle's built in mimetex scripts or one can point to the location of the mimetex executable you desire to use. The built-ins are located (oddly enough) in the same directory as the texdebug.php script ... moodlecode/filter/tex/ and one will see:
mimetex.darwin
mimetex.exe
mimetex.freebsd
mimetex.linux
If you are on a Linux system (CentOS/RedHat/Ubuntu), Moodle should be using mimetex.linux
That file needs to be executable by the web server user and group:
-rwxrwxr-x 1 apache apache 1317676 Feb 14 2015 mimetex.linux
One can see it work from the command line ...
cd /pathtomoodlecode/filter/tex/
then type: ./mimetex.linux (with no parameters).
You should see an ascii (text) representation of Ascii dump of bitmap image... Hex dump of colormap indexes, asterisks denote "black" bytes (index=8)... and The 9 colormap indexes denote rgb values... if it's functioning.
Test via browser (must be logged on):
http://yourserver/filter/tex/texdebug.php
Will allow you to enter latex code and see if the server can generate the gif.
Looks like ...
'spirit of sharing', Ken