I can’t make imagemagick work..
edit
CHMOD is set to 777
I found the error log.. no error concerning imagemagick is reported.. I just made up an error to check if it was the correct error.log – and it was…
[Thu Nov 03 14:47:49 2011] [error] [client 94.145.177.221] PHP Notice: Use of undefined constant sd - assumed 'sd' in /var/www/_im.php on line 24
Here is the code
$base = $_SERVER['DOCUMENT_ROOT'].'/';
$src = $base.'invoice.pdf';
$dst = $base.'invoice.png';
$syntax = '/usr/local/bin/convert -debug coders -log "%u %m:%l %e" '.$src.' '.$dst;
echo $syntax;
exec($syntax);
is_file($src) returns true
If you are unable to locate your webservers/vhosts
error.logthis can oftentimes help to figure out some problems:(Except it’s blockend via safe_mode and open_basedir as well. But you would have found out with a PHP warning, unless you had turned them off.)