Search found 3 matches

by josh4trunks
2014-07-22T00:40:27-07:00
Forum: Bugs
Topic: [SOLVED] Cannot load PDF with PHP-FPM
Replies: 4
Views: 19950

Re: [SOLVED] Cannot load PDF with PHP-FPM

SOLVED
Thanks for leading me in the right direction!

All I did was add this to my php-fpm.conf and conversion of PDF's now work =]

Code: Select all

env[PATH] = /usr/local/bin:/usr/bin:/bin
by josh4trunks
2014-07-22T00:22:34-07:00
Forum: Bugs
Topic: [SOLVED] Cannot load PDF with PHP-FPM
Replies: 4
Views: 19950

Re: Cannot load PDF with PHP-FPM

Did you also install Ghostscript? I have "ghostscript9-nox11-9.06" installed which is a dependency of Imagemagick. Maybe with PHP-FPM (which uses the 'www' user with a limited shell) ghostscript isn't accessible? But it is accessible when I run the script from the commandline? EDIT Does Imagick ...
by josh4trunks
2014-07-21T22:53:38-07:00
Forum: Bugs
Topic: [SOLVED] Cannot load PDF with PHP-FPM
Replies: 4
Views: 19950

[SOLVED] Cannot load PDF with PHP-FPM

I can't seem to get PDFs to load when running a script using PHP-FPM. Any help would be greatly appreciated. Thanks, SPECIFICATIONS OS ~ FreeBSD 10 64bit PHP ~ 5.5.14 ImageMagick ~ 6.8.9.4 Pecl-Imagick ~ 3.1.2 TEST SCRIPT <?php $path = '/tmp/in.pdf'; $pdf = new Imagick($path); $pdf->setImageFormat ...