Path to Imagemagick
<?php
echo "<pre>";
system("type convert");
echo "</pre>";
//Alternative method
echo "<pre>";
system(\'which convert\',$path); print_r($path);
echo "</pre>";
?>The path will be the same to all the other commands like composite.