help me this tex filter problems

help me this tex filter problems

by nhu Thang pham -
Number of replies: 3
My server is WIn2003 server + IIS + my SQL

Warning: system(): Unable to fork [C:\Inetpub\vhosts\hoctoan.com\httpdocs\home/filter/tex/mimetex.exe ++ -e "C:\Inetpub\vhosts\hoctoan.com\httpdocs\moodledata/filter/tex/c535667012295c2151c279683d7a91c5.gif" "\Large \alpha"] in C:\Inetpub\vhosts\hoctoan.com\httpdocs\home\filter\tex\texdebug.php on line 131

Warning: shell_exec(): Unable to execute 'C:\Inetpub\vhosts\hoctoan.com\httpdocs\home/filter/tex/mimetex.exe ++ -e "C:\Inetpub\vhosts\hoctoan.com\httpdocs\moodledata/filter/tex/c535667012295c2151c279683d7a91c5.gif" "\Large \alpha" 2>&1' in C:\Inetpub\vhosts\hoctoan.com\httpdocs\home\filter\tex\texdebug.php on line 148

The shell command
C:\Inetpub\vhosts\hoctoan.com\httpdocs\home/filter/tex/mimetex.exe ++ -e "C:\Inetpub\vhosts\hoctoan.com\httpdocs\moodledata/filter/tex/c535667012295c2151c279683d7a91c5.gif" "\Large \alpha"
returned status = -1
File size of mimetex executable C:\Inetpub\vhosts\hoctoan.com\httpdocs\home/filter/tex/mimetex.exe is 433152
The file permissions are: 100777
The md5 checksum of the file is 84f9f8c2eb29a52d01b17852cfa58fb6
Image not foun
Average of ratings: -
In reply to nhu Thang pham

Re: help me this tex filter problems

by Zbigniew Fiedorowicz -
The relevant error message is
Unable to execute 'C:\Inetpub\vhosts\hoctoan.com\httpdocs\home/filter/tex/mimetex.exe 
It appears that your IIS web server isn't configured to allow external programs like mimetex to be executed.  Unfortunately I don't know anything about IIS.  If you search this forum, you will find other people who encountered this problem and seem to have found a solution.  Try following the links they posted or contact them by email.


In reply to Zbigniew Fiedorowicz

Re: help me this tex filter problems

by John Forkosh -
Shital Shah's solution to this ongoing problem is described at http://www.codeproject.com/dotnet/Eq2Img.asp where he describes how to install mimetex as a Win32 DLL (rather than as a stand-alone executable image). His latest code can be downloaded from http://www.shitalshah.com/dev/eq2img_all.zip

Of course, that would require some changes to the tex filter (which is easy for me to say since I wouldn't have to make them). DLL installation at each moodle site would also add complexity. I have no idea whether or not it's worth the effort. Probably not for everybody. But if your sysadmin is willing to install dll's while refusing to run cgi's, then Shital's solution should work.