Hallo all,
I have Mediawiki now for 1 year and everything worked fine.
I upgraded my OS to Fedora Core 4 (from 2) and I upgraded my Mediawiki version to 1.6.7.
I have set $whUseTex to true and then installed imagemagick, latex, dvips, gs, and convert, TeTex, Ghostscript and AMS fonts. I have also compiled texvc.
I next loaded one of his pages and get in red text: Can't write to or create math output directory)
I can see the PNG-file in the ../images/tmp/ dir, but nothing in math dir...
I thing it has to do something with the new hierarchy of ../images/math/ dir, but I don't know.
images/math exist.
PHP is not runnig under "safe mode".
Please help me, beceause I become crayzy, I am now working days on this issue.
Thanks and kind regards,
Farshad Bashir
On Mon, Jun 12, 2006 at 05:28:36AM +0200, Farshad Bashir wrote:
Hallo all,
I have Mediawiki now for 1 year and everything worked fine.
I upgraded my OS to Fedora Core 4 (from 2) and I upgraded my Mediawiki version to 1.6.7.
I have set $whUseTex to true and then installed imagemagick, latex, dvips, gs, and convert, TeTex, Ghostscript and AMS fonts. I have also compiled texvc.
I next loaded one of his pages and get in red text: Can't write to or create math output directory)
Make sure that the web server has write permissions to the math image directory. This error message indicates that the web server does not have the permissions to write to the math directory.
Regards,
JeLuF
Hallo,
Thanks for your answere.
My images dir is chmoded 777, images/math is chmoded 777, user apache, group apache.
The images/tmp is chmoded 753, user apache, group apache.
The program can write in images/tmp dir, but it can't copy the file to the images/math dir.
Logfile from debugmode (last part): ============== EditPage::edit: Checking blocks TeX: ./math/texvc '/var/www/vhosts/zonow.com/subdomains/nl/httpdocs/images/tmp' '/var/www/vhosts/zonow.com/subdomains/nl/httpdocs/images/tmp' 'x^3' 'utf-8' TeX output: ccd81d846781f418f883642fab802ae4a<i>x</i><sup>3</sup> --- TeX: getHashPath, hash is: cd81d846781f418f883642fab802ae4a, path is: /var/www/vhosts/zonow.com/subdomains/nl/httpdocs/images/math/c/d/8 ** private caching; ** Request ended normally =============
If I now look in the images/tmp/ dir, I can find the math formule, but if I look in the images/math/ dir, there is nothing.
I don't know what to do. PHP safe mode is off.
Who know what to do?
Kind regards,
Farshad Bashir
2006/6/12, Jens Frank jf@mormo.org:
On Mon, Jun 12, 2006 at 05:28:36AM +0200, Farshad Bashir wrote:
Hallo all,
I have Mediawiki now for 1 year and everything worked fine.
I upgraded my OS to Fedora Core 4 (from 2) and I upgraded my Mediawiki version to 1.6.7.
I have set $whUseTex to true and then installed imagemagick, latex, dvips, gs, and convert, TeTex, Ghostscript and AMS fonts. I have also compiled texvc.
I next loaded one of his pages and get in red text: Can't write to or create math output directory)
Make sure that the web server has write permissions to the math image directory. This error message indicates that the web server does not have the permissions to write to the math directory.
Regards,
JeLuF _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
You say that the ..../images/math directory is empty. It doesn't even have subdirectories with one-character names? These should be created automatically.
You say that you think it has to do something with the new hierarchy of ../images/math/ dir. Did you try going back to the old behaviour, where all pictures are stored in .../images/math/ ? This can be achieved by changing return $path; in the function _getHashPath in includes/Math.php to return $wgMathDirectory; (at least I think so, I didn't test it).
To be honest, I have no idea what the problem is, but perhaps it helps.
Jitse
Dear Jitse,
No, it doesn't work for me...
I am now making new directorys, 47988 new directorys under the ../images/math/ dir. (a b c d etc...)
If the directory exist, I can see the image. I will make all thses directorys chmod 755 and change the user and group owner. It will take some time, but I have no other solution.
Kind regards,
Farshad
2006/6/12, Jitse Niesen jitse.niesen@gmail.com:
You say that the ..../images/math directory is empty. It doesn't even have subdirectories with one-character names? These should be created automatically.
You say that you think it has to do something with the new hierarchy of ../images/math/ dir. Did you try going back to the old behaviour, where all pictures are stored in .../images/math/ ? This can be achieved by changing return $path; in the function _getHashPath in includes/Math.php to return $wgMathDirectory; (at least I think so, I didn't test it).
To be honest, I have no idea what the problem is, but perhaps it helps.
Jitse
Dear all,
I solved the problem!!!
I replaced the math.php ver 1.6.7 by the math.php version 1.5.0. And it works now again!
All the output is now placed in one directory: ../images/math without subdirectorys!
Jitse, thank you for the hint!!!
Kind regards,
Farshad Bashir
2006/6/12, Farshad Bashir farshadbashir@gmail.com:
Dear Jitse,
No, it doesn't work for me...
I am now making new directorys, 47988 new directorys under the ../images/math/ dir. (a b c d etc...)
If the directory exist, I can see the image. I will make all thses directorys chmod 755 and change the user and group owner. It will take some time, but I have no other solution.
Kind regards,
Farshad
2006/6/12, Jitse Niesen jitse.niesen@gmail.com:
You say that the ..../images/math directory is empty. It doesn't even have subdirectories with one-character names? These should be created automatically.
You say that you think it has to do something with the new hierarchy of ../images/math/ dir. Did you try going back to the old behaviour, where all pictures are stored in .../images/math/ ? This can be achieved by changing return $path; in the function _getHashPath in includes/Math.php to return $wgMathDirectory; (at least I think so, I didn't test it).
To be honest, I have no idea what the problem is, but perhaps it helps.
Jitse
wikitech-l@lists.wikimedia.org