Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not find CasperJS Laravel 5.2 #29

Open
comancsm opened this issue Oct 26, 2016 · 1 comment
Open

Can not find CasperJS Laravel 5.2 #29

comancsm opened this issue Oct 26, 2016 · 1 comment

Comments

@comancsm
Copy link

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
Copy link
Owner

alwex commented Oct 31, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants