I'm doing a php script to convert PPT files to PDF. I have my ubuntu instance running on Amazon Ec2. The problem is that when I run from the console:
libreoffice --headless --convert-to pdf prueba.ppt
It works fine but when I do from php:
exec('libreoffice --headless --convert-to pdf prueba.ppt');
It does not work, it does not give an error, nor does it create the file. Can someone help me with what I'm doing wrong? Thanks!