You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the script in console php index.php it works well.
But if I run it via browser http://localhost/ or via curl in console curl localhost it gives me an error ERROR - Fatal: No such file or directory; did you install phantomjs?
My nginx config is simple
server {
listen 0.0.0.0:80;
root /var/www/html;
location / {
index index.php index.html;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
}
phantomjs and casperjs are installed
ls -la /usr/local/bin
casperjs -> ../lib/node_modules/casperjs/bin/casperjs
phantomjs -> /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs
It is all in docker container.
Any ideas?
The text was updated successfully, but these errors were encountered:
When I run the script in console
php index.php
it works well.But if I run it via browser
http://localhost/
or via curl in consolecurl localhost
it gives me an errorERROR - Fatal: No such file or directory; did you install phantomjs?
My nginx config is simple
phantomjs and casperjs are installed
It is all in docker container.
Any ideas?
The text was updated successfully, but these errors were encountered: