Can not find CasperJS Laravel 5.2
Opened this issue · 1 comments
comancsm commented
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
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.