Forum Moderators: phranque
Long story short:
Apache 1.3.33
PHP 5.0x
Darwin 10.4.3
Imagemagick (current)
Ghostscript 8.5.0
Gallery2
Using Ghostscript for PDF --> convetedPDF.jpg/gif/bmp format works reliably via the shell. (i.e /usr/bin/ghostscript_binaries/ # convert my.pdf my.jpg)
When this is called via Apache/PHP (Gallery2), Imagemagick reports no support for the application/pdf or image/pdf mime types. I'm told that Apache probably doesn't associate or cannot locate the ghostscript binaries for PDF conversion, thus they need to be 'added to it's path'. Imagemagick seems aware of Ghostscript, as it reports application/postscript mime support available via Apache/PHP.
Moving GS out of it's location and repeating the test eliminates postscript mime support. So, Apache can probably locate the GS binaries in relation to mime-type 'application/postcript'.
I haven't a notion re: syntax for adding path vars to apache. The 'handler' and 'format' definitions in httpd.conf don't seem to get it. I can only guess along these general lines: (# Setenv Calledname PATH=/my/binary/path/)
Would any of you be willing to specify shell commands or at least narrow down 'what' particular thing I should be doing to add a binary's path (and/or mime-type trigger) to Apache's environent?
I'm getting a bit dizzy.
Thank you very much for your time.
[edited by: jdMorgan at 2:37 am (utc) on Mar. 17, 2006]
[edit reason] No uRLs, please. [/edit]
Jim