Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // The following PHP executes in the context of the Apache user - 'www-data'
- //
- $execstring = "node " . $args;
- exec($execstring, $output, $return_value);
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
- nvm install 4.1.2
- sudo su www-data -s /bin/sh
- // Danger! Do not do this!
- 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