I use Ubuntu 14.04 and install NodeJS. Now I want to call NodeJS command from phpcli, but it's not executing the command. This is my example code:
chdir('/var/www/html/kurento/video/');
$cmd = 'npm start';
var_dump(shell_exec($cmd));
Results in : string(87) " > kurento-one2many-call@6.2.2-dev start /var/www/html/kurento/video > node server.js "