php-phantomjs
php-phantomjs copied to clipboard
PHP Fatal error: Uncaught exception 'JonnyW\PhantomJs\Exception\InvalidExecutableException'
Hi I'm trying to use php-phantomjs, I've installed using composer: ($ composer require "jonnyw/php-phantomjs:4.*")
The installation was success but when I try to implement the Basic Usage I'm receiving this error:
PHP Fatal error: Uncaught exception 'JonnyW\PhantomJs\Exception\InvalidExecutableException' with message 'File does not exist or is not executable: /bin/phantomjs.exe'.
I've googled and I tryied several solutions like: $client->getEngine()->setPath('/path/to/phantomjs'); | chmod... without success.
I'm trying in a server with CentOS 6.7
Please I really need help. Thanks a lot.!
Also having this issue on a vagrant box. Cant seem to chmod the file, and am simply getting:
JonnyW\PhantomJs\Exception\InvalidExecutableException:
File does not exist or is not executable: /var/www/bin/phantomjs
in /var/www/vendor/jonnyw/php-phantomjs/src/JonnyW/PhantomJs/Engine.php:216
+1。。。。 I am the same problem
Have you solved this problem?