Sorry to Necro, but I'm having a very similar issue.
I've installed phpBB (version 3) on my server (Suse Linux Enterprise 11, 64-bit) and I've tried the example codes given:
Code: Select all
<?php
// Build the array of items to be used
exec("convert convert -list list", $IMarray, $code);
// Start the loop to find and display the results
foreach ($IMarray as $value) {
echo "<br>system (\"convert -list $value\")";
echo "<pre>";
system("convert -list $value");
echo "</pre><hr>";
}
and
Code: Select all
?>
<?php
echo "<pre>";
system("convert -version");
echo "</pre>";
?>
But when I put either of those sets in a file (testing.php) it returns a blank HTML page. The thing is, I'm pretty sure that ImageMagick is installed on my server. Here's the information copied from Yast 2:
libMagickCore1 - Viewer and Converter for Images - runtime library
Version:
6.4.3.6-7.22.1
URL:
http://www.imagemagick.org
Source Package:
ImageMagick-6.4.3.6-7.22.1
Here are some sample entries under the file list (from both libMagickCore1 and libMagickCore1-32bit):
/usr/lib/ImageMagick-6.4.3
/usr/lib/ImageMagick-6.4.3/modules-Q16
/usr/lib/libMagickCore.so.1
/usr/lib/libMagickCore.so.1.0.0
/usr/lib64/ImageMagick-6.4.3
/usr/lib64/ImageMagick-6.4.3/config
/usr/lib64/ImageMagick-6.4.3/modules-Q16
/usr/lib64/libMagickCore.so.1
/usr/lib64/libMagickCore.so.1.0.0
So, am I right? According to this ImageMagick should be installed, but I'm still not getting something with the PHP code provided by Bonzo. The end-purpose of all this is so that phpBB that I've installed will use ImageMagick correctly.
I hope this wasn't too long, but I figured more info was better than too little.