alwex / php-casperjs

simple PHP wrapper for CasperJS
MIT License
182 stars 71 forks source link

Can not find CasperJS Laravel 5.2 #29

Open comancsm opened 7 years ago

comancsm commented 7 years ago

Hello,

I have casperjs and phantomjs installed globally. I run Laravel 5.2 with nginx - ubuntu 16.04 I have tried everything, even setting the path manually and installing casperjs in the public folder. All i get is Can not find CasperJS error.

The path to the executable is correct, i verified through php file exists and is writeable.

Both phantom and casper work from the command line.

alwex commented 7 years ago

Hello, are you executing your script with the command line or using a browser? If you use a browser (firefox, chrome...), then you trigger the script via apache or nginx and the script is then executed with your www-data user, you will then need to make casperjs available to this user.