I connected phatomJS, but when I use it, I get an access error, and logs;
[Sun May 12 13:08:29.851934 2019] [cgi:error] [pid 10772] [client 172.68.245.146:45558] AH01215: PHP Fatal error: Uncaught exception 'Screen\\Exceptions\\PhantomJsException' with message 'sh: /var/www/sklad5379/data/www/САЙТ/scrinshooter/vendor/microweber/screen/bin/phantomjs: Permission denied' in /var/www/sklad5379/data/www/САЙТ/scrinshooter/vendor/microweber/screen/src/Capture.php:259 [Sun May 12 13:08:29.851984 2019] [cgi:error] [pid 10772] [client 172.68.245.146:45558] AH01215: Stack trace: [Sun May 12 13:08:29.852079 2019] [cgi:error] [pid 10772] [client 172.68.245.146:45558] AH01215: #0 /var/www/sklad5379/data/www/САЙТ/scrinshooter/screenshot.php(28): Screen\\Capture->save('images/f4881cfc...') [Sun May 12 13:08:29.852089 2019] [cgi:error] [pid 10772] [client 172.68.245.146:45558] AH01215: #1 {main} [Sun May 12 13:08:29.852184 2019] [cgi:error] [pid 10772] [client 172.68.245.146:45558] AH01215: thrown in /var/www/sklad5379/data/www/САЙТ/scrinshooter/vendor/microweber/screen/src/Capture.php on line 259
There is a return code error: Error code - 126
On the 259th line:
exec(sprintf("%s 2>&1", escapeshellcmd($command)), $output, $returnCode); if ($returnCode !== 0) { throw new PhantomJsException($output);//259 }