Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. //
  2. // The following PHP executes in the context of the Apache user - 'www-data'
  3. //
  4. $execstring = "node " . $args;
  5. exec($execstring, $output, $return_value);
  6.  
  7. curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
  8.  
  9. nvm install 4.1.2
  10.  
  11. sudo su www-data -s /bin/sh
  12.  
  13. // Danger! Do not do this!
  14. n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement