I have a problem when I want to convert a pdf file using a simple php script like:
<?php
shell_exec("convert pdf.pdf image.png");
?>
The conversion works fine when converting from terminal (SSH connection), but only if I'm logged in as myself. The following will give no error nor an output file 'image.png'.
sudo su www-data
<enters password>
convert pdf.pdf image.png