I’ve recently moved from goDaddy hosting to Dreamhost.
I could previously run phantomjs (phantomjs.org) using a shell_exec command in PHP, however I am no longer able to using Dreamhost hosting.
On goDaddy I was able to download, extract & run the Linux version of phantomjs (phantomjs-1.8.1-linux-x86_64.tar.bz2) from phantomjs.org. I copied the resulting file structure to my hosting account where I could run phantomjs using the PHP code, e.g.
shell_exec("/home/username/phantomjs/bin/phantomjs /home/username/phantomjs/examples/rasterize.js ‘http://www.google.com’ test.pdf ‘A4’);
This uses the inbuilt rasterize script to output a PDF from a URL.
On Dreamhost no derivation I’ve tried of the above works, and when attempting to run via the shell I get a -bash permission denied.
I really need to be able to run using shell_exec and have looked everywhere but to no avail. Any help would be much appreciated!