command execution problem
I have a socket.io installation on my website. From one of the programs on the website, I need to execute: "node server.js" in the shell to start the socket.io server. If I try to do it from php with the exec command, the shell sees "node" and errors with no file found.
So is there a way that I can execute "node server.js" successfully from inside a shell script? php could then use exec "shell_script" with no problem.