Nikola Smolenski schrieb:
> Ryan Kaldari wrote:
>> shell_exec("cat newmap.svg 2>&1");
>> outputs the svg file to the browser, so it can definitely find the file. 
>> I'm stumped. What's the difference between running rsvg directly from 
>> the command line and executing it from PHP? Perhaps there are some 
>> environment restrictions or something. Has anyone else been able to 
>> successfully execute rsvg from PHP on nightshade?
> 
> First, even if you wouldn't have these problems, you really should be 
> using full paths to files. So, please, /usr/bin/rsvg-convert 
> /tmp/whatever/newmap.svg
On nightshade rsvg is "/usr/bin/rsvg", on willow and wolfsbane it's 
"/opt/ts/bin/rsvg" so to be cross-server compatible we need to use 
"rsvg" and rely on the PATH-Environment Variable.

> Second, try "strace -e file -f rsvg newmap.svg 2>&1" and if you don't 
> see anything useful, the same without "-e file". You should see what 
> exactly fails in the last lines.

I'm not able to execute strace on willow or via http on wolfsbane:
ERROR: unable to open /dev/log

http://toolserver.org/~mazder/rsvg.php
http://toolserver.org/~mazder/rsvg.phps

Peter

_______________________________________________
Toolserver-l mailing list ([email protected])
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list: 
https://wiki.toolserver.org/view/Mailing_list_etiquette

Reply via email to