**I have tried permissions but still getting this error
Array ( [0] => sh: 1: /var/www/nodejs/tmp: Permission denied )
The command is execute from the route file of Laravel(MVC PHP Web application)
Tried CHMOD 777 , CHMOD +x etc.
My current permission is as follows
-rwxr-xr-x 1 root root *number* Oct 9 21:35 test.js
What did i not do?
My php code
$user_input = "http://google.com/";
putenv("PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs");
exec('/var/www/nodejs/tmp test.js $user_input 2>&1',$output);
print_r($output);