Forum Moderators: phranque

Message Too Old, No Replies

Apache PATH env variable for Ghostscript

Apache Config for Imagemagick & Ghostscript Binaries

         

ashevillian

5:38 pm on Mar 16, 2006 (gmt 0)

10+ Year Member



For reference, the whole text of this issue is here
<snip>

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]

ashevillian

4:39 pm on Mar 17, 2006 (gmt 0)

10+ Year Member



Please feel *Entirely* free and encouraged to delete my registration. I've no further use of it if the best spam control the 'masters' can conjure for their own forum is the elimination of related information.

Rather what the web is good for, don't you think?

Cheers.

jdMorgan

6:16 pm on Mar 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Our Terms of Service [webmasterworld.com] exist to protect our members from promotional URL drops that waste their time (and space on the forum) and from malicious web sites. Feel free to post relevant information (as long as you own the copyright) into threads here. But we do not allow links to unknown or non-authoritative sites, and this policy is non-negotiable.

Jim