1

Launch linux app using PHP (Apache) with root privileges for certain commands

view story
linux-howto

http://stackoverflow.com – I am running several instance of Node and all of them run on different ports. I need a way to be able to kill a particular instance of Node based on the port it is running (kill node instance binded to port n). From my terminal I can easily do a "fuser -k xxxx/tcp" xxxx being the port. The thing is, that is because I have the authorisation to do so. My question is: I want to be able to have a PHP file that closes the node instance running on port n and it can be opened by anyone. How to do this without opening huge security holes? Thank you! (HowTos)