php-phantomjs icon indicating copy to clipboard operation
php-phantomjs copied to clipboard

PHP Fatal error: Uncaught exception 'JonnyW\PhantomJs\Exception\InvalidExecutableException'

Open unipago opened this issue 7 years ago • 3 comments

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.!

unipago avatar Feb 28 '18 08:02 unipago

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 

iantearle avatar Mar 19 '18 11:03 iantearle

+1。。。。 I am the same problem

keyesone66 avatar Aug 15 '18 13:08 keyesone66

Have you solved this problem?

maksutovnurda avatar Feb 12 '21 13:02 maksutovnurda