niutech / node.php

Run node.js apps from PHP even on a shared hosting!
813 stars 236 forks source link

exec() has been disabled for security reason #7

Closed thedanheller closed 8 years ago

thedanheller commented 8 years ago

I'm getting this error message when running node.php?start. Any way I can fix this? Thanks!

Node.php

Starting: node ''
Warning:  exec() has been disabled for security reasons in /home/{mysite}/www/node.php on line 70
Failed.

Warning:  file_get_contents(nodeout): failed to open stream: No such file or directory in /home/{mysite}/www/node.php on line 74

Powered by node.php
niutech commented 8 years ago

You have to remove exec from disable_functions directive in your php.ini file.