I am trying to run PhantomJS from a PHP script using
exec('/path/to/phantomjs/phantonjs --version');
This line works fine from the CLI but does not work at all from my PHP script.
I have searched around for a fix and found this Q/A and read something about permissions that can be the problem. I have try all these fixes and still, PhantomJS does not launch.
I'm desperate at this point, can someone help me out? Thanks.