And the server is Nginx.
Javier
2013/10/7 Javier Bezos jbezos@fundeu.es
I'm not sure this is a problem in the server or in MediaWiki.
I have an extension which calls a bash script with wfShellExec. The bash file consists essentially of
touch $1.A latex $1 dvipng $1 touch $1.B
The touch'es are just to see if the bash file is run. And indeed it's. However, neither .dvi nor .log files are created (which are the result of running latex). However, when running the script from the command line everything is ok.
This extension is based on WikiTeX.php, and the lines calling the script are:
$cmd = wfEscapeShellArg( $wfTexConvert, $tempName, $dpi, "$storedir/$hash" ); wfProfileIn( "TeX-shellexec" ); $convtext = trim( wfShellExec( $cmd ) ); wfProfileOut( "TeX-shellexec" );
Any ideas about what's wrong? Perhaps some permission not set?
By the way, TeX is TeXLive2012, installed separately, and the site is www.wikilengua.org .
Javier
-- ______________________________
Javier Bezos López T. 34 913 467 440 www.fundeu.es www.wikilengua.org www.manualdeestilo.com Twitter http://www.twitter.com/fundeu, Facebookhttp://www.facebook.com/fundeu, YouTube http://www.youtube.com/user/fundeuy Google+http://gplus.to/fundeu
mediawiki-l@lists.wikimedia.org