title: Starting and stopping services on remote Linux servers
body: <p>I am in the middle of creating a game server control panel and i have a few issues.</p>
  
  <p>The control panel needs to basically issue commands to a remote Linux server, starting and stopping processes, i have the commands written for this, however the problem is.</p>
  
  <ol>
  <li><p>I am not sure whether to just SSH in using a PHP library and then issue the commands OR have remote files on the server to deal with this. Which would be most efficient?</p></li>
  <li><p>Is it even safe running SSH commands from PHP, using the root account? Even if commands that will be sent are hard coded.</p></li>
  <li><p>If the remote Linux servers would need remote files, what language would this be written in and what functions are best?</p></li>
  </ol>
  
  <p>If you have any other ideas of the best way around this, please share, i will be very grateful.</p>
  
  <p>Thanks!</p>